Smooth scrolling using jquery/plugins
-
Hi all, so I’m having some trouble getting some to work on this website that has a custom theme (I’m trying to get it to work with the black and white menu at the top):
At first I just tried to do it using the plugin “Scroll to Page ID” but that hasn’t been working either. So I’ve been trying to program something myself. (Note: I really don’t know anything about Jquery and have been mainly copying and pasting from github, developers’ websites, etc.).
I think there may be some kind of script conflict, because I’ve tried to install smooth scrolling using a couple of non-plugin methods, and remnants of that may be laying around. For example, I tried to put this script in header.php, registering it in functions.php:
https://callmenick.com/2013/04/22/single-page-site-with-smooth-scrolling-highlighted-link-and-fixed-navigation/I went into a whole rigamarole with jQuery, registering and enqueueing some non-plugin scripts because the site doesn’t appear to be loading anything jQuery or Javascript-related at all. Something, I believe, should be appearing in the console when I click on my header links, but there isn’t even a sign of failure. It seems things should be much simpler than this. Help?
PS: I’ve taken the steps in this thread to no avail:
Here.
- The topic ‘Smooth scrolling using jquery/plugins’ is closed to new replies.