how do i connect to the ceiling fan that has blue and white that does not work with the wall switch
I recommend referring to the instructions that came with the fan. My fan has a wireless remote to operate the fan speed on/off and lights on/off and dimmer. The instructions should detail exactly what to connect to. Probably just maurette them to the wireless receiver if it's like mine
The blue wire gets connect to the black along with the black from the fan.all whites go together.
Wiring that way you can turn the light on and off by the chain only.
To operate the light independent of the fan will require additional wire and switch.