Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #282820

    Hey there –

    I have a small issue I would like to get fixed. When I click to go to my “shop” page the underline to show where I’m at on the website doesn’t appear like it does when I’m on other pages. How can I fix this? Any help would be appreciated!

    #282945

    Hey kroemer08!

    It seems like WooCommerce doesn’t detect the shop page as selected page. Please try to insert this code into the enfold/functions.php file or the child theme functions.php file:

    
    function add_custom_classes($classes, $item)
    {
        if(is_shop() && $item->ID == 3169) $classes[] = 'current-menu-item';
        return $classes;
    }
    add_filter('nav_menu_css_class' , 'add_custom_classes' , 10 , 2);
    

    Regards,
    Peter

    #283112

    Nice that worked thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Menu – Page underline doesn't show up for Shop page.’ is closed to new replies.