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]
- How to check if a plugin (WooCommerce) is active?
- How to trigger WooCommerce order complete email?
- How to get Woocommerce order product info
- Menu Items Disappearing
- How to automatically apply woocommerce product title to all product images alt tags?
- WordPress Shortcode and Dynamic CSS
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- Woocommerce auto cancel On-Hold after X days
- How to Use the Function is_user_logged_in To Display Different Menus?
- WP_Query | Help me create a search term with an ‘OR’ relation?
- Replacing a specific menu item
- WooCommerce – Customer Order History Pagination
- The values of custom fields are not available functions.php
- Use wc_enqueue_js only on specific pages – nested add_action
- WordPress loop specific thumbnail size
- Display related products with custom output
- Use is_product_category() properly
- How can I add a custom class to only nav sub-menu > li > a items in WordPress?
- Style wp_page_menu() items
- Changing Woocommerce flat rate every nth number of items
- How to select WooCommerce products by post_meta and order them
- An unwanted inline style is added to my body tag
- Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
- write custom woocommerce templates and forms
- How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts
- WooCommerce – Email admin with new user details
- WP Walker using custom css classes
- Change list item content in menu navigation to add a child element with specific class
- Selectbox in admin panel function linking to CSS
- Using if/else statements with output from theme options
- Issue adding sub category programmatically
- Auto-update products after they were published – Woocommerce
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Hide product categories and taxonomy terms in menu if empty
- Which field should I edit to make the checkbox marked by default?
- wordpress + woocommerce display product with additional information [closed]
- How to display pictures from database?
- Child page menu in sidebar
- Title Case WordPress Menu Items
- Trying to store submenu items to render out after main menu
- How to change menu order item
- Remove page title in product page using a function
- woocommerce specific quantities for product
- WordPress site with embedded menu – gives You don’t have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server
- Why in this WordPress theme I can’t see the Main Menu?
- How to sort posts by active category in WordPress?
- How do I know if the user is a customer?
- WordPress custom php script to match standard page layout
- WooCommerce is_product_category() not working
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- Adding product permalink on admin order page throwing error
- How can i put php code on the wordpress page?
- Relative post date in recent posts list
- How keep woocommerce users separeted in multisite install and keep admins on network
- Nav menù doesn’t display selected pages
- child category under correct parent