Front Page Scroll Jumps to Top Menu
-
I reduced the front page header image height and repositioned the site title and site description. When I scroll down, the top menu jumps up (approximately its own height). Other pages do not have this problem. Any suggestions?
Thanks in advance,
Ronny- This topic was modified 6 years, 1 month ago by rjhardaway.
The page I need help with: [log in to see the link]
-
- Create a Child Theme if you’ve not done so already.
- Create a new file in your Child Theme folder and name it ‘global.js’
- Inside your Child Theme ‘global.js’ file add this: https://pastebin.com/tUNY6GPq
Andrew,
Thank you for your help, but the child-theme global.js file did not solve the problem. The jump still occurs.
Ronny
Ah okay, try this instead:
Create the following directory structure in your Child Theme folder:
/assets/js/
So that’s an “assets” folder inside your Child Theme, then inside that create a “js” folder.
Then put the ‘global.js’ file inside that “js” folder. So you get this structure:
/assets/js/global.js
Does that work?
Thanks, again, Andrew. That made the scrolling smooth, but the top menu is no longer sticky, but I will work on that.
Ronny
Sorry that’s my problem with the code I recommended.
Actually it’s not a problem with the code, it’s a problem with the implementation; It looks like you copied this bit from PasteBin “RAW Paste Data”, which should not be part of the code.
Also, you need to be doing this in a Child Theme as instructed. It won’t work by modifying the parent theme’s files.
- The topic ‘Front Page Scroll Jumps to Top Menu’ is closed to new replies.