The shop link in your menu gets the “current_page_parent” class when your on a product page.
If you have any WooCommerce categories in your menu, they will get “current-product-parent” as a class when you’re on e product page from that category.
Simply give those classes the same styling as your active class.
Related Posts:
- How to modify navigation menu of the “My Account” page in WooCommerce
- unable to add custom page/tab to my account woocommerce
- The cart, checkout, and shop links not getting removed
- Menu not adding the right items
- Admin: WooCommerce Navigation Menus do not show empty categories search tab
- Importing large product categories into wordpress menu
- How does WP knows which template to use for a page
- Split up wp_nav_menu with custom walker
- how to create a menu with all sub categories?
- WordPress Menu Custom Walker Class
- How to change order of menu items
- Remove unusable metaboxes in nav menu management screen
- Highlight parent menu item when child is not in menu
- Add Commas Between Menu Items?
- Allow html tags in WordPress Custom Menus Description Field
- Add custom attribute to menu item link using Filter
- Show child pages by menu order using Superfish Dropdown menu?
- Bootstrap drop down menu with wp_nav_menu
- Remove nav menu or menu item
- Adding a within ‘s from wp_nav_menu()
- Building a Sub-menu: Display Parent Category/Page’s Children When Viewing Children
- Getting stripos error when trying to add menu classes
- Output the aria-labelledby parameter for a nav menu child
- Custom Walker for Walker_Nav_Menu
- Make compatible custom menu widget for Twitter Bootstrap
- Different side menu on each page
- Automatically generated menu
- Replace menu permalink/hyperlink with only menu name/slug
- Variables within wp_nav_menu
- wp_update_nav_menu_item not saving in multisite API
- get_search_form() doesn’t appear to take parameter into account
- Header style different on home and remaining pages
- Pass GET params to URL from a main menu item
- wp_nav_menu_items filter :: custom menus fall outside ul class
- Schedule Page to Menu [duplicate]
- How can I add items to the menu via the PHP file?
- Limit the menu child levels under “admin > appearance > menus”
- WordPress warning: “private_to_published” Deprecated when creating nav with wp_update_nav_menu_item()
- display menus on all page except one?
- Show Menu from one WordPress install in another WordPress install
- Check if Page Already Exists in Menu
- Reuse a custom WordPress menu on another WordPress website
- Is this format possible with a custom Nav Walker class?
- Default WordPress menu content
- Add code to WordPress menu items by class
- How do you add a around the second level of a Menu?
- custom walker nav issue involving ajax
- Remove admin menu
- How to add html attributes to the “ul” html tag with “wp_nav_menu” function?
- Limit User Iinterface for Admin?
- Creating menu and breadcrumb “sections” within WordPress 3 being used as a CMS
- Conditional menu display
- Give child-categories same class (the parent category-slug) as parent in menu list?
- How Do I Add Images To Main Navigation Menu
- Custom Menu not functioning properly
- Using front-page.php need new blog page
- Is it still not possible to show separate submenu with “Custom Menu”?
- Three menus – parent / child / sibling
- WordPress Nav Walker – Top menu link with dropdown link not clickable (dropdown opens)
- Rename the label on a menu location which is already defined?
- How to making dynamic URLs for menus in WordPress?
- swap out only main menu for logged in users
- Menu Not Showing on Mobile
- Add custom class to li element which has children
- How to Show Different Menus to Logged in Users in WordPress [duplicate]
- Unable to get menu pattern using a walker
- Adding CSS-class to WordPress Menu in backend
- How to change the menu like this?
- Custom ul class
- wp_nav_menu inside an object — how do I deal with fallback_cb?
- How to get or know the slug of home.php
- Removing Submenu from Menu
- How to create menu spread over four lines including images
- Adding conditional classes to wp_get_nav_menu_items
- Help with WordPress Custom Nav Walker
- Custom link missing as option in my ‘add menu items’
- Mobile navigation javascript problem
- Custom menu including also primary menu items
- open menu link (PDF) in new tab not download
- twentysixteen child theme – responsive menu – ham icon button not working – Cannot read property ‘classList’ of null
- Why my dropdown menu is effecting main menu?
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- how to split vertical menu into two columns using walker nav menu
- How to Add Class in
- How to style wp_nav_menu?
- How to inject HTML to secondary menu on front end?
- Different colors for navigation bar
- Show Child of Parent Page including all other parents
- Add item ONLY to the primairy navigation
- wp_nav_menu in 3.7 add name class nav navbar-nav
- WordPress Navigation default output
- Specifying Class style for Menu
- Is there a limit to number of pages displayed for selection in custom menu?
- Convert HTML code to WordPress menu
- Add monthly archives menu and submenu
- wp nav menu – highlighting current page not working properly [closed]
- Hamburger Navigation Menu
- One item on menu is not clickable when it should be
- Critical Error when editing menu
- I need to change the hyperlink attached to the logo on the mobile menu