Yes you can with conditional tags. https://docs.woocommerce.com/document/conditional-tags/
So depending on whether you wanted it to appear on all woocommerce pages (the listing page as well as the individual product pages) you could use is_woocommerce()
if you wanted just on individual product pages you could use is_product()
So you would use an if statement to check if this was true before outputting the call to the menu. You could put this in the header.php or template where you output your menu
if(is_woocommerce()){
$args = array(
'menu' => 'Your submenu'
);
wp_nav_menu( $args );
}
Related Posts:
- Adding first / last CSS classes to menus
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- wp nav menu: add attributes to menu items [duplicate]
- How to display conditional-content if wp_nav_menu( $args ) retruns something
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- WordPress Quick Question . How to Get Parent Link in Submenu in My Code
- get_the_title() gets printed out twice
- Redirect to another page using contact form 7? [closed]
- CSS change in woo commerce Place Order Text [closed]
- Menu Custom Data Attributes
- How to use wp_nav_menu to create custom dropdown menu?
- How to modify mobile nav menu text in theme
- Extend Menu Walker Output
- Show login greeting above sub-menu links?
- Remove submenu item from list
- conditional: if is page, and all subpages
- wp nav menu: show submenu below li item
- Styling an “active” link outside of WordPress default menu
- how to changes mobile menu toggle breakpoint in WordPress
- How to make only the valid active page of a multilevel menu active with – “.nav li.current-menu-item a”?
- PHP function for horizontal Woocommerce thumbnails and badges
- Use CSS tag inside PHP code
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- How to hide a div section when user is logged in, in single product woocommerce
- How to set Nav as a default menu in wordpress
- How to let mobile navigation menu close when link is clicked?
- Get Child of Child Pages in custom Menu
- Add Shortcode to ::before class
- Bring Font Awesome icons inside menu A tags
- Hot to edit WooCOmmerce dashboard?
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- How limit the width of a fixed menu-bar on scroll?
- Beyond widget side menu editing, with the php page, custom template
- How to remove image on single product and get product to span page?
- How I can add div to menu?
- wp_nav_menu prints children with parent name
- WP_Nav Highlight Parent Issue
- How to change the menu color
- Can’t remove menu items added by plugin
- Submenu opened problem
- How to add margin underneath woocommerce total price amount -> productpages
- How to create a container in php then customise it in CSS
- WooCommerce Checkout Cart [closed]
- Sort Woocommerce Products with Numbered Titles Numerically
- separating column the variations from the add to cart button woocommerce
- Add a custom stylesheet for BlackBerry
- How can I hide Home in my menu in a specific page?
- Missing sidebar parameter “fix” – before_content
- Change the URL of an image from wp_get_attachment_image_src except in the frontpage
- Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
- Can’t extend some core classes
- How do I display a user’s previous orders as a select box option on a product?
- How Display Posts on category
- Change Navigation Bar based on logged in or not
- How do you add customer capability after Woocommerce purchase?
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- Change sign up fee in cart for subscription products WooCommerce
- How can I use wp_query to show all product data using just the products ID?
- write custom woocommerce templates and forms
- Show comments menu in dashboard only if the site has comment
- combine Code 1 with Code 2
- WooCommerce – Reset quantity input field when variation changes
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- get current product name in functions.php
- Get stock by custom meta field on all Woocommerce variable products
- Make the first item as default on Woocommerce product category items list
- Custom Text in WooCommerce Order Processing Email Based on Products
- Woocommerce redirect thankyou page based on product ID doesn’t empty Cart
- Set a condition based on WooCommerce checkout city field while placing order
- Get WooCommerce product details and transfer them to a custom DB table
- woocommerce subscriptions – get expiration date [closed]
- tracking number field in Woocommerce order [closed]
- Count top level menu items
- How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts
- Slider loading issue
- WooCommerce Related Products by Attribute
- create a select input with menus created on a custom options page
- Image as Sales Badge
- WooCommerce – Email admin with new user details
- Multiple WordPress Menus that will only display all pages
- Menu — How to add “current-menu-grand-ancestor” css class
- Input type search in Menu
- Plugin CSS not enqueing
- Automatically remove a canceled order in Woocommerce
- WP Walker using custom css classes
- Parent theme CSS overriding child CSS rules
- how to remove metadata from the posts of my blog?
- Call global variable array() in woocommerce child/template
- How to style options page in dashboard?
- Remove price from Woocommerce variable product dropdown menu
- Change list item content in menu navigation to add a child element with specific class
- Theme Options Page – User Updates Logo
- How to use my style.css file outside of wordpress subdomain?
- Adding nofollow to a PHP generated Nav
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- Menu Limitations
- How can I Add a variable PHP in the Menu Nav
- Selectbox in admin panel function linking to CSS