Javascript not working even though functions are being called

Hello everyone,

I’m new to Github so please excuse my lack of understanding of Github features.

I am having an issue with my webpage. I have a JS function that manipulates the CSS in my webpages. It is supposed to turn the navbar white, change the logo and make a “Go to Top” button appear once the user scrolls. I managed to get it working on all my pages until I moved my Navbar CSS into it’s own file as having it on the main style page were causing conflicts. After the move the JS only somewhat works on the index page but not at all on any other page. Does anyone know why?

Can you provide your code? Is there a demo? Do you get any errors? What conflicts did you have?