Sticky Navigation Issue
-
Hello
I’ve been trying for hours now to include a sticky navigation, as per this tutorial:
http://webdesign.tutsplus.com/tutorials/javascript-tutorials/create-a-sticky-navigation-header-using-jquery-waypoints/I’ve followed all the steps and have everything in place — css, JavaScript, etc. — however the navigation doesn’t ‘stick’.
The navigation itself shows, and does stick if I manually change the id to sticky, but it won’t do it on its own as needed.
I’ve copied all the coding onto a test html page, and the navigation sticks as it should, so I’m thinking this has something to do with how WordPress treats JavaScript, but I honestly know very little about the topic, so I’m fairly clueless — I’m basically a copy-and-paster when it comes to JavaScript.
Any ideas on how I can fix the issue? Here’s the page I’m working on:
http://natureswonderland.com.au/wwoof/Thanks in advance.
– Natasha
-
It looks like your links to the required JS files are incorrect.
When looking at the page source and clicking the links for jquery.scrollTo.min.js, waypoints.min.js and navbar2.js, it comes up with a 404 error page, meaning they cant be found.Thanks for the quick reply.
I’ve just gone and checked, and the files are definitely uploaded to the directory and when I click the links from the page source, each of the files loads the content, so I’m not sure why you’re seeing 404 error pages for the .js files.
[ Please do not bump, that’s not permitted here. ]
OK, thanks for clarifying — I see the issue now.
However, having corrected this, it’s still not sticking?
Don’t know if this will work but try changing line 1 of nav2.js
jQuery(function() {Unfortunately, that didn’t work, either… Is this something WordPress isn’t able to do?
The topic ‘Sticky Navigation Issue’ is closed to new replies.