I an replacing a light fixture in the kitchen.
In the box there are 2 white, 2 blk, 1 red, and the ground.
The fixture has two sockets with a white and black for each.
If I recall correctly, in the previous one socket light the 2 white from outlet
were connected to the one white from fixture, the 2 blk in box were tied into one nut connector
and the red went to black from fixture.
I have done some reading but nothing conclusive on how to handle this set-up.
I put the whites from the light fixture to the whites in box and the same for black (per install instructions, and capped the red) ... this just turned the light on but no control from the switch
Please advise on the correct wiring
arrangement ... many thanks.