I want to change my navbars background from transparent to white when I start to scroll the page. I’ve read a lot about this topic, but I’m lost right now. It seems to work perfectly when I’m in Cornerstone. But when I load my site the normal way the navbar just stays transparent.
Thanks for writing in!Your code is fine but you have some JS errors that’s preventing the code – http://prntscr.com/eb7jeb
You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.