Tagged: x
-
AuthorPosts
-
April 19, 2016 at 4:31 pm #890823
deedeeParticipantI 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!
April 20, 2016 at 5:27 am #891540
ChristopherModeratorHi 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/#tag1Hope it helps.
April 21, 2016 at 8:37 am #893620
deedeeParticipantThat works, thanks!
April 21, 2016 at 8:57 pm #894605
NicoModeratorHappy to hear that.
Feel free to ask us again.
Have a great day! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-890823 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
