The source is at the switches and the input of each is spliced to the black source wire with a wire nut.
Ceiling fan with light electrical connection.
Turn off power at the breaker.
Powered ceiling fan and or light without any switches no switches switching the light and using the pull chain for the fan single switch switching the light and fan from the same switch single switch.
Ceiling fans should never be mounted to regular plastic or fiberglass light fixture boxes.
The four methods are.
This wiring diagram illustrates the connections for a ceiling fan and light with two switches a speed controller for the fan and a dimmer for the lights.
Turn the power back on and test the fan.
Connect white wires together.
Tuck the wires back into the box.
The ceiling mounted electrical junction box must be approved for the weight of the ceiling fan.
In some cases a black wire with a white stripe is used for the light fixture of the ceiling fan.
Wiring a ceiling fan and light getting started.
If a second wall switch is not being used then the blue wire also connects to the black wire of the circuit power source.
From the switches 3 wire cable runs to the ceiling outlet box.
The following will assist you with your electrical question.
Connect black wires together.
The blue wire is for the light fixture of the ceiling fan which connects to the red wire from a second wall switch.
Connect the lighting wire typically blue to the black fan wire and the black ceiling wire.
Ul approved ceiling fan boxes are required by code this is for your safety and protection.