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!
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
Nice that worked thanks!