Replacing a ceiling fan with a standard 2 bulb light fixture
After removing the ceiling fan there were two cables of wire coming into the junction box in the ceiling. One cable (I think from the wall switch) has a red, black, white, and bare copper ground wire. The other cable in the junction box has a black, white, and bare copper ground wire. When I installed the new fixture I first capped off the red wire then connected all the white wires together, all the black wires together, and the ground wires together (attached to the base plate). Well, when I turned on the main power at the breaker panel the light fixture is on constantly and no on/off control from the wall switch. I did take off the switch plate at the wall switch and low and behold the red and black wires are coming off the switch. How do I tie in the red wire at the ceiling junction box with the light fixture and the other incoming cable?? HELP!. Thanks in advance!!