Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1096491
    stuartrowens
    Participant

    Site: test4.stuartrowens.com

    In my menu, three of the items link to a section on the homepage (Work, Clients & Partners, About). The link attribute I used is just #work, etc.

    The problem that creates, obviously, is that when a user clicks that link from another page, it tries to take them to the #work section on the page they’re currently on, which doesn’t exist.

    To solve this, I made the menu item the entire link: http://test4.stuartrowens.com/#work. The problem here, however, is that when the homepage loads, the menu shows all three items highlighted (which makes sense, considering those three menu items ARE linking to that page).

    Here’s my question: is there a way to keep Work, Clients & Partners, and About from displaying as highlighted when a user is on the homepage? I’d still like Home highlighted since they are in fact on the homepage.

    If hope my question makes sense- sorry for the lengthy post.

    #1096519
    Paul R
    Moderator

    Hi,

    Thanks for writing in!

    You need to create two menus in Appearance > Menus

    1. One for onepage navigation which the links will only be ids

    eg. Work – #work
    Clients – #clients

    This menu will be set in your homepage through one page navigation

    http://screencast.com/t/FYgbMqMXRp

    2. Create another menu with absolute urls, this menu will be the default.

    eg. Work – http://test4.stuartrowens.com/#work
    Clients – http://test4.stuartrowens.com/#clients

    Hope that helps.

    #1096917
    stuartrowens
    Participant

    Thanks! Sorry I missed that- I really shouldn’t work on sites that late at night!

    #1097007
    Joao
    Moderator

    Glad to hear it.

    Let us know if you need further help,

    Joao

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