Home › Forums › Support › Current page styling for menu with both WooCommerce and blog? › Reply To: Current page styling for menu with both WooCommerce and blog?
May 7, 2016 at 12:19 am
#192409
Tom
Lead Developer
Lead Developer
The menu class structure is all handled by WordPress – it looks like it adds the current_page_parent class to the li element when in an individual post.
You can always do something like this will CSS:
.main-navigation .main-nav ul .current_page_parent > a {
background: #222;
color: #FFF;
}
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
The Social Icons issue is kind of handcuffing. I either load the CSS in the footer only on pages that have the icons, or load them in the header (semantically correct) on every single page (even if social icons aren’t used on the page).