I’m usind WordPress and WooCommerce.
I’ve added products under different categories and I’m using:
<?php wp_nav_menu( array( ‘sort_column’ => ‘menu_order’, ‘container_class’ => ‘menu-header’ ) ); ?>
to display a custom menu.
However, when viewing a single product, the category to where it belongs does not get highlighted.
Looking at the generated HTML code the CSS class current-menu-item is not added under a single product.