• Hello,

    Sorry for another issue! Thanks to one of the moderators a problem was fixed on my anchor links, and now within my homepage and sub-menu page (my site is just two pages) they are working great. The anchors are between the menu / sub-menu items at the top of the page and sections of text within the page.

    But, if I am in the homepage and click on a sub-menu item, or the opposite (i.e. in the sub-menu page and I click on a homepage menu item), I end up a little too far down the page – about the equivalent of 6 lines of text – sorry I don’t know what that equates to in pixels!

    I can’t work out why I would be taken to a different place if coming to the anchor from a different starting point, and can’t find any help relating to this specific issue.

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 16 through 24 (of 24 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    My fault. It’s an issue with the loading of scripts again. Our main.js file is working, but the work that is does is being erased by the theme’s ‘global.js’ file.

    Can you again go to the Child Theme functions.php file and replace this:

    
    wp_enqueue_script('child-theme-scripts', get_theme_file_uri( '/main.js' ), array( 'jquery-scrollto' ), false, true );
    

    With this:

    
    wp_enqueue_script('child-theme-scripts', get_theme_file_uri( '/main.js' ), array( 'twentyseventeen-global' ), false, true );
    

    I’m sorry that this part is taking long.

    Thread Starter carobcn

    (@carobcn)

    No need to apologise, I’m just grateful for the help!

    I think I did something wrong, as the website temporarily disappeared when I did this, my host co. are just looking into it for me – they said I may have accidentally pasted an incorrect symbol or something, so I’ll just make sure I have the all clear then will try again.

    Thanks

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Oh still I’m sorry that your website is down. Your hosting providers sound like they’re on top of it. The next version of WordPress should have improvements to the editor to prevent things like this from happening. It’s not exactly your fault.

    Thread Starter carobcn

    (@carobcn)

    Ok, they pasted the new code in for me with no issues, but unfortunately no change to the scrolling height!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Would you be able to copy everything in your Child Theme functions.php and put it here? Remember to wrap your code in a backtick character.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Okay @carobcn, after much discussion and help from nice people I know why the above attempts didn’t work. I do not however know the solution and think it will take a long time to figure out. I might revisit this at a later date, but I’m afraid this problem will consume a lot of my spare time and that’s why unfortunately I cannot resolve it.

    Thread Starter carobcn

    (@carobcn)

    Ok Andrew, thanks so much for all your help anyway, hopefully I’ll resolve it one day!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’ve seen this bug in another person’s website and I think it’s an issue with the theme. So I’ve now raised a bug report here in case you want to track progress with it: https://core.trac.www.ads-software.com/ticket/42598#ticket

    Thread Starter carobcn

    (@carobcn)

    Interesting – thanks for letting me know, I will indeed keep an eye on it!

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Anchoring fine within pages, but clicking between pages it’s too low’ is closed to new replies.