• 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.

    Is it possible to get this class added?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add current-menu-item to items under categories.’ is closed to new replies.