I used the 'Page scroll to id' plugin for Wordpress to set up a one scroll page where the menu items let you scroll through the section. I noticed the animation wasn't working, which had been the case for a few other websites I worked on in the past. Strange enough, unchecking the option 'activate on menu-items' did the trick back then and made the animation work. However, this time is different. I checked the general forum for this plugin on Wordpress.org to troubleshoot this and I later deactivated the plugin to try to make it work with a simple jQuery function.
After those attemps I noticed that the menu items were still letting me scroll through the page, even though I removed my function and deactivated the plugin. I cleared my browser cache and installed WP Super Cache to delete any cache from the website itself. Neither of these did the trick.
I have no idea what makes the menu items scroll through the page, but it overrides any workaround I attempted to get an animated scroll function. There aren't any plugins installed at this moment. Does anyone know what might be causing this?
I tried a couple of things:
Found the problem. The line wasn't there in the front-page.php, which is the obvious reason that no function in the footer worked. But it was also conflicting with the animation of the Page Scroll To ID plugin, which is very unexpected.