Hello, I'd like to jump with highlight from button1 to button2 after a click on the submenu1 link that points to submenu2 item. Currently both buttons are highlighted: button1 and button2. What should I write in the custom CSS field?
Ok, we got it. Looks like both items got current-menu-ancestor class. When you switch to default wp theme, you will notice the same behave what means this is not related with theme at all. Both of these menu items must have the same parent and that's why both are highlighted. You supposed to sort them under Appearance > Menus section, because this behave can not be sorted with custom css.
We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.
Cookies are small text files that can be used by websites to make a user's experience more efficient.
The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.
This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.
You can at any time change or withdraw your consent from the Cookie Declaration on our website.
Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.
Please state your consent ID and date when you contact us regarding your consent.
Comments
please show us on screenshot what exactly you want to do and also please send us link to page where you want to do this.
Thanks!
It would be great to highlight the menu buttons according to the breadcrumbs.
This time I'd like to have menu buttons to be highlighted just like on the One Page, but within sidebar, with Menu Muffin or other widget. Is there any demo page that uses this widget of yours with working option of highlighting?
Sample page#1: http://narzedziownie-formy.pl/regulamin-serwisu/
Sample page#2: http://themes.muffingroup.com/be/service/
Working demo: http://callmenick.com/_development/single-page-smooth-scroll/
When I put full link into the Menu, the current-menu-item is added to every item - all buttons are highlighted with hover state.
If there are #hashes only, buttons are not highlighted.
Thanks in advance
I want to have menu button highlighted on scroll in sidebar, please check link above.