My light fixture had 2 wires one black and one white wire.
How to connect a wall light to a plug.
Check to see if there is a stud or rafter in the wall behind the new location of the light.
Connect the wires of the light fixture to the extension cord wires.
Usually if you are wiring a regular fixture you match the black to black wires and white to white but in this case my extension cord came with two white wrapped wires so i didn t have that colour guidance.
If necessary use wire strippers to remove the insulation from the light fixture s electric wires.
If there is no stud drill small holes into the drywall for screw anchors pound them in and screw the fixture into the anchors.
Using a wire cutter cut the length of the light fixture s electric wires to the length of the house wires.
And i ve got a step by step tutorial for you too.
Connect the house wires and the wires of the new light fixture in the reverse way you used to disconnect the old light fixture.