• Resolved carobcn

    (@carobcn)


    Hello, I’m really stuck on something probably quite simple, as I’m a total newbie to website creation. Would be incredibly grateful for some help!

    I’ve created anchors on a homepage and have a scrolling function set up so that when you click on a main menu item, you scroll to the relevant anchor on the page. This all works fine.

    But, one of the main menu items (about us) has three sub menu items (our team, our values, positive impact). Once you’re in the sub menu – which is actually just one page, again with anchors for each section – you can’t get back to the main menu. The sub menu item URL remains in the browser when clicking on a main menu item.

    Similarly, the only sub menu item you can get to from the main menu is the first one (our team), because I added the full URL into the custom link. This is a problem in itself as you now can’t smooth scroll to that item when in this page.

    I know there is an issue with the URLs / anchors I’m writing, but I can’t work out how to fix them and have had no luck with my web host support. Thanks in advance!

    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

    The Custom Links in your menu need to have a forward slash at the beginning of the URL.
    So instead of this:

    
    #clients
    

    They need to be:

    
    /#clients
    

    The forward slash character represents the homepage.

    Thread Starter carobcn

    (@carobcn)

    Thank you SO much @anevins for the simple explanation – needless to say it’s worked perfectly for the main menu. That little / has literally made my day.

    I don’t suppose you could advise on the sub menu – is it possible to click on any one of the sub menu items to get into that page (the three items relate to just one page), but retain the anchors so I can scroll within that page?

    Thanks again

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Is this the page the sub menu anchors are meant to work on: https://www.roselandpartners.com/about-us/more-about-us/ ??

    Thread Starter carobcn

    (@carobcn)

    Yes exactly

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The Custom Links for those anchors need to have the path to the page, and must start with a forward slash.

    For example from this:

    
    #ourvalues
    

    To this:

    
    /about-us/more-about-us#ourvalues
    
    Thread Starter carobcn

    (@carobcn)

    Again, @anevins thank you so much for the simple explanation. You have put an end to a couple of days of me tearing my hair out and I’m very grateful!!!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You’re welcome. Please feel welcomed to open a new thread if you’re getting even a little bit stuck, that’s what we’re here for.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t return to homepage from sub menu page due to anchors’ is closed to new replies.