Current page link and in-page navigation
-
Hello,
I’m trying to do something similar to the “Contents” menu on this page:
https://www.gov.uk/driving-medical-conditions
This navigation is within a page (instead of a navigation bar or sidebar), but the links point to other pages (not within the page), and the link to the current page is removed. Is there a way to do this automatically? Or is manually removing the link to the current page in every in-page menu the only solution (I was at least hoping to use a reusable block for each section)?
If that’s not possible, can I automatically make the link to the current page different than the ones to the other pages in the menu? I know that aria-current=”page” is automatically applied to the navigation and some widgets, but is there a way to make it work within a page like that? So far, in this situation, I’ve had to manually apply it to the link pointing to the current page in every in-page menu (so I can’t use reusable blocks either).
Thank you in advance for any help, CSS, plugin suggestions or other.
- The topic ‘Current page link and in-page navigation’ is closed to new replies.