Tagged: x
-
AuthorPosts
-
July 1, 2016 at 1:25 pm #1068691
pdopchevParticipantHi guys,
I am trying to add an additional menu similar like the one on the screengrab (something like a submenu for the WooCommerce part of the website) and keep the primary menu. Is that possible?
Link:http://www.dopchevproductions.com/test/product-category/stock-skis/
Tried with the following code but it overrides the existing Primary menu. I did create a menu called Shop Menu, which hasn’t been assigned as a primary or footer menu.
// =============================================================================
// Sets Custom Menu For WooCommerce Shop
// =============================================================================add_filter( ‘wp_nav_menu_args’, ‘custom_blog_menu’ );
function custom_blog_menu( $args ) {
if ( x_is_shop() ) {
$args[‘theme_location’] = ‘primary’;
$args[‘menu’] = ‘Shop Menu’;
}
return $args;
}July 1, 2016 at 8:01 pm #1069102
Rue NelModeratorHello There,
Thanks for writing in! To be able to have a different menu when you are on a WooCommerce shop or product page, I would highly recommend for you to check out this topic: https://community.theme.co/forums/topic/different-header-for-woocommerce/page/2/#post-710116
Hope this helps. Please let us know how it goes.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1068691 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
