• 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]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    1. Create a Child Theme if you’ve not done so already.
    2. Create a new file in your Child Theme folder and name it ‘global.js’
    3. Inside your Child Theme ‘global.js’ file add this: https://pastebin.com/tUNY6GPq
    Thread Starter rjhardaway

    (@rjhardaway)

    Andrew,

    Thank you for your help, but the child-theme global.js file did not solve the problem. The jump still occurs.

    Ronny

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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?

    Thread Starter rjhardaway

    (@rjhardaway)

    Thanks, again, Andrew. That made the scrolling smooth, but the top menu is no longer sticky, but I will work on that.

    Ronny

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Sorry that’s my problem with the code I recommended.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Also, you need to be doing this in a Child Theme as instructed. It won’t work by modifying the parent theme’s files.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Front Page Scroll Jumps to Top Menu’ is closed to new replies.