This is what I have and what is happening(sorry for long post, but I want to be exact as I can) From the ceiling electric box, are 1) three white wires twisted together 2) three black wires twisted together 3) and one red wire. The old light fixture had one black wire and one white wire. I believe they were connected originally to the black and white wires in the ceiling box. The fixture turned off and on with a wall swath. We connected the new fixture, which has a black wire, white wire and green wire. We connected white with white, black with black, and the green wire we initially left unconnected. The light turned on , when we turned the circuit breaker on, but would not turn on and off, from the light switch. We weren't sure what to do, so we thought to try and put back the original fixture(which only had one black and one white wire) we connected black to black and white to white. We were puzzled at the same result. Fixture would work, when circuit breaker turned on, but not turn on and off from wall switch. We have nothing now. Can you help me, and give me some suggestions to install new fixture which has the black, white and green, and what to connect to ceiling box which has black, white, and red.
Thanks so much,and much regards