Resolved

The menu main point is not highlighted when the visitor is on a submenu page.

Ultra Theme started by 4system Apr 26, 2017 8 replies
4system Apr 26, 2017 · 11:52 am #6389

The menu main point is not highlighted when the visitor is on a submenu page. How can I change this?

Andrew Misplon Puro Apr 26, 2017 · 12:16 pm #6390

Hi 🙂

Add the following to your own Custom CSS plugin or Customize > Additional CSS

/* Menu */
.main-navigation ul li.current-menu-parent a {
	color: red;
}

Change the value red to your hexadecimal color value required.

4system Apr 26, 2017 · 12:27 pm #6391

Thanks, now it works but now every sub-menu page is also highlighted and not just the one the visitor is on. Can this be improved?

Andrew Misplon Puro Apr 26, 2017 · 12:32 pm #6392

Sure, moment…

Andrew Misplon Puro Apr 26, 2017 · 12:33 pm #6393

How about:

/* Menu */
.main-navigation ul li.current-menu-parent > a {
	color: red;
}
4system Apr 26, 2017 · 12:52 pm #6394

Thanks, this is much better, but now the submenu page is not highlighted. It would be perfect if the visited sub-menu page is also highlighted.

Andrew Misplon Puro Apr 26, 2017 · 12:55 pm #6395

This shouldn’t have any effect on the sub-menu page, that should still be highlighted. Please, send a link to your site. Thanks.

4system Apr 26, 2017 · 1:05 pm #6396

You’re right. It was not displayed in Customizer only. When I left it, it worked.
Thanks for the quick help. 🙂

Andrew Misplon Puro Apr 26, 2017 · 1:07 pm #6397

Thanks for checking. To help with one page layouts the current class is being added with JS so, unfortunately, it won’t show in the Customizer.

All the best 🙂

9 posts