You can even replace a socket switch with a cord switch. Just purchase a new socket assembly without a switch and follow the instructions for replacing a cord switch. You can buy a new socket switch from most hardware stores, and they usually cost around $2-$5 USD.
If the socket shell is hard to remove, use a screwdriver to pry it loose.
The neutral wire is usually marked in some way. It may be a different color, or the insulation may be printed, stamped, or have indentations. Make sure to note this now, since you’ll need to know which wire is neutral when you hook up your new switch. If you can’t identify the neutral wire, look at the plug. The neutral wire is attached to the wider plug blade on a polarized plug. If your plug blades are the same size, you should replace the plug while you’re replacing the socket. [4] X Research source
If you see any strands of wire when you pull away the insulation, it means you cut too deep. Cut off that section and start again.
Although sockets will be slightly different depending on the manufacturer, the wires should thread easily through the socket. Make sure the socket is right-side-up and look for wire channels to help you know where to guide the wire.
If the lamp doesn’t come on, check the connection in your switch and try again. If this doesn’t help, you may need to replace the plug.
The difference between SPT-1 and SPT-2 involves the thickness of the lamp cord.
Try to avoid cutting the neutral wire. If you have to cut it in order to remove the old switch, strip the insulation and connect the cut ends of the neutral wire together. If you like, add a plastic connector to protect the wire at the location where you want your new switch to be. If you are adding a cord switch when there wasn’t one before, use a small knife to carefully split the cord where you want your new switch to go, then cut through the hot wire. If your switch requires you to attach the neutral wire, cut through that too.
There should be no visible wires showing when the switch is assembled. All you should see is insulated cord. If the exposed wires are too long, use the wire cutters to snip off a small portion and reattach the wires to the screws.
If the lamp doesn’t turn on, double-check your wiring and try again.