Id links all showing highlighted on page

I have navigation that uses same page links as well as page links. When I’m in an editor it works fine, but in the actual site, it highlights every single same-page (#target) link. It’s set up no differently than any other site I’ve set up. What am I doing wrong?

https://procidaho.org

Hello @jrhager84,

Thanks for writing in! You are having this issue because you have inserted an incorrect menu item link. You should only insert #ID-name in the menu link.
mkvE4HiDQRKAKclX80V3vQ

And if you want to have the absolute link, you should be using https://example.com#ID-name

We would love to know if this has worked for you. Thank you.

Does it not support relative links? It’s like that, as the blog won’t have an id of ‘about’ - So it goes from / (the root) to #about (the section). This strategy has worked in the past.

Hi @jrhager84,

A couple of things here, please make sure you’re only using the ID link (#contact), not an absolute link (https://yoursite.com#contact) on your one-page menu. Second, do not set your One Page Menu as the Primary Menu but only assign it to the intended page (your homepage). Obviously, you need to use relative link for blog item since that is a separate page.

This means that you need to duplicate your menu and set the duplicate one as the Primary Menu, and since you want to link this menu back to your one page (homepage), you need to use the absolute link (https://yoursite.com#contact) on this duplicate (primary) menu.

More details about one-page navigation

Let us know how it goes,
Cheers!

I’ve never had to duplicate menus in the past for this. Did something change?

Hello @jrhager84,

It has been the correct way of using the One Page Navigation feature. You will need two sets of menus. One menu will be exclusive for one-page navigation and the other menu is for the primary menu. The documentation guide, https://theme.co/docs/set-up-one-page-navigation#how-to-setup-menu-for-one-page-navigation, mentions to create a menu and it clearly shows that it is not assigned as primary menu.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.