Anchored links in header
-
Hey guys,
Thanks for making this plugin.
I’m having a problem. I have several anchor links as drop down links in my main navigation menu. I can’t figure out how to make this plugin work for both:
a) id’s that are on the same page, and
b) id’s that are on different pages.Right now, I have my links set up in Appearance>Menus like so:
URL/#target
What happens is it works fine when going to a different page – it loads the new page and scrolls to the section. However, when I click a link that contains a target-id that is on the same page, it refreshes the page because of how I have the URL set up in my menu.
I guess this isn’t really your fault – essentially what I need is a different link (URL#target or just #target) for id’s that are on the same page and another (URL/#target) for links that are on a different page. I’m just not sure how to set up my Menu like this, and I thought maybe you could help since this might be an issue that will help future plugin users.
Let me know!
Thanks,
Benjamin
- The topic ‘Anchored links in header’ is closed to new replies.