Replacing ceiling fan with light fixture red wire
I'm trying to replace a ceiling fan with light to a light only. My switch at the wall was a dimmer but I switched to a flip. The new fixture has 2 black 2 white and a ground wire. In the ceiling I have a bundle of white a bundle of black (that are all capped off together) a red and a ground wire. I have tried the white to white and the black (from fixture) to red (since all the blacks in ceiling are capped off) this is not working and I have tried changing out the switch from dimmer to flip as mentioned earlier (thinking the dimmer had something to do with it). Can you help?