Tagged: x
-
AuthorPosts
-
July 20, 2016 at 11:54 pm #1096491
stuartrowensParticipantSite: 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.
July 21, 2016 at 12:32 am #1096519
Paul RModeratorHi,
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 – #clientsThis 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/#clientsHope that helps.
July 21, 2016 at 7:05 am #1096917
stuartrowensParticipantThanks! Sorry I missed that- I really shouldn’t work on sites that late at night!
July 21, 2016 at 8:36 am #1097007
JoaoModeratorGlad to hear it.
Let us know if you need further help,
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1096491 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
