How do you wire electric fans?

no sparking fan

The white wire from the fan to the white wire from the ceiling get wire nutted together.The black and blue wire from the fan go to the black wire from the ceiling and all 3 get wire nutted together. Lastly the green wire from the fan and the bare copper wire from the ceiling get wire nutted together. 90% of fans are wired this way.