Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #890823
    deedee
    Participant

    I have a simple menu with 3 items :

    item1 (page)
    item2 (custom link)
    item3 (page)

    item2 URL is “#tag1”, which is embedded in item1’s page. The idea is that when I pick item2 in the menu, it will scroll to location #tag1 in item1’s page. I have one page navigation enabled for item1’s page.

    Things work fine if I am already on item1’s page and I click on item2.

    However, if I am on item3’s page, and I click on item2, it tries to go to #tag1 within item3’s page (which doesn’t exist), as opposed to #tag1 within item1’s page.

    I need to associate #tag1 with item1’s page somehow. I tried specifying the URL as “/full/path/to/item1page/#tag1”, which fixes the navigation issue, however, both item1 and item2 are “highlighted” any time I am on either item1 or item2, which looks weird.

    Am I doing something incorrectly, and is there a way to fix this?

    Thanks!

    #891540
    Christopher
    Moderator

    Hi there,

    Please create two menus, one for one page navigation and the other as primary menu.
    Inside one page navigation use relative URLs, e.g : #tag1
    To target one page sections from primary menu use absolute URL, e.g : http://yoursite.com/#tag1

    Hope it helps.

    #893620
    deedee
    Participant

    That works, thanks!

    #894605
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Have a great day! 🙂

  • <script> jQuery(function($){ $("#no-reply-890823 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>