I'm trying to replace a ceiling light in the kitchen. The light is controlled by a wall switch. I took the light off and I have 2 black and 2 white wires in the box. I shut the switch off and the box was still hot.
I found the breaker that controls the hot wire in the ceiling box. I put the black wires together and then the white wires together and then attached the black from the new light with the black wires and the same with the white. I turned on the circuit breaker with the switch off and the light came on. I turned the wall switch to the on position and the light went off and blew the breaker.
Do I have to put all three whites together with wire nut and then one black to black light lead and other black to white lead from light? confused