If the switch that was there is a standard light switch with two brass screws on it and one green screw you can connect the red wire to either of the brass screws. Also the light fixture is.
How To Install A Dimmer Light Switch Wiring And Replacement
Light switch has 2 black wires. I turn power on turn switch on no light. I have tested continuity on the switch and its wires. Black means hot white signifies neutral and green indicates ground. However if you need to rewire a light switch or a plug socket you may occasionally come across two black wires. Make sure to shut off the power before doing this turn the breaker for the circuit off. Its essential that you determine which black wire is hot before proceeding.
Bulb1 and bulb2 white and black wires connected to breaker white and black wires. There is no problem with the switch. Connect the bottom screw to the hot wire. If you have a ground wire connect the ground wire to the green screw. The easiest and safest way is to use a multimeter to test for current. Connect the black wire to the other brass screw.
Turn on power lights come on but switch has no control. 4 way switches have 4 screws 2 will be black and 2 will be brass. Repeat these connections with the two white. Connect the lead wires from the fixture to the black hot wire in the electrical box by twisting a wire connector to the ends of the lead and hot wires. You will have to get a 4 way switch for that position not a 3 way switch. Red and black form the same cable will connect ot he brass screws then the red and black from the other cable will connect ot he black screws.
When you turn the power back on and if you want to swap the direction of the switch as in press down to turn off or turn on turn off the power and switch the two black wires. Copper wire connected to junction. Connect the top screw to the wire that feeds to the light.