I’m installing a new light fixture to replace an old ceiling fan light fixture. When I removed the old fixture there are 3 sets of black, white, and copper wires in white casings. My new fixture does not have a fan and only has the standard black, white and copper wires. When I wire them, they immediately trip the breaker. How do I fix this or find out which wire goes to what?
one of those white wires goes to the switch one of those black wires comes from the switch
You need to figure out which is which and connect the white wire goes to to the switch to the black wires (this white wire should have black paint or tape on it) connect the black wire that comes from the switch to the lamp, and (using a short piece of wire) connect the other white wires to the other lamp terminal.