Archived topic
Dismiss slide navigation when clicking a link
3 replies · Started by Tiago on March 14, 2017
Hi there,
I designed a one-page website with sticky navigation for sections. The navigation on mobile is set to slide a drawer in but I'm using anchor navigation for the page. Is there a way to dismiss the drawer once an anchor is clicked? And is there a way to highlight the current anchor with GP? Thanks for the awesome theme.
Hi Tiago,
This feature has actually just been introduced in the most recent version of GP Premium (1.2.95).
Update it and test it out!
https://docs.generatepress.com/article/updating-gp-premium/
Which of the features?
1) Dismiss the drawer menu as an anchor in the drawer is clicked
2) Highlight the current anchor in the GP Sticky menu
I just updated the theme and am trying to find the new features. Are they options I should turn on?
Thanks Leo
The menu will dismiss once you click on a menu item.
Highlighting the current menu item based on the anchor is must more difficult. This topic might offer some insight: https://generatepress.com/forums/topic/page-scroll-to-id-to-highlight-current-element-on-sticky-nav/