Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Second top nav with "Zen menu logic" not working? #764378

    For others that have the same problem:

    Add the following to your functions.php (I use “My custom functions” plugin for this purpose) :

    // ability to use advanced layout editor for shop page so it doesn't break Zen Menu Logic on this page
    add_theme_support( 'avia_custom_shop_page' );
    
    // a filter to replace the primary menu on shop, product and product category pages
    add_filter( 'wp_nav_menu_args', 'custom_primary_menu' );
    
    function custom_primary_menu( $args ) {
      if ( (is_shop() || is_product() || is_product_category()) && ($args['theme_location'] == 'avia')) { 
        $args['menu'] = 'YOUR_MENU_NAME';
      }
      return $args;
    }

    Use avia for primary menu and avia2 for secondary

    • This reply was modified 7 years, 9 months ago by Skelt0r.
    in reply to: Second top nav with "Zen menu logic" not working? #763655

    Hi Thomas,

    I have the same problem… How did you fix it? In my case I have a business part and a consumer part of the website with their own menu. This works fine with Enfold and Zen Menu Logic. For the Woocommerce shop page I want to use the ‘consumer’ menu and I can select it at the bottom of the page, just like the other pages. But it doesn’t show the selected menu, it show’s a made up menu comprised of all the pages that exist…

    Best regards,

    Stefan

    Can you at least point me in the right direction for 4 & 6…

    • This reply was modified 7 years, 10 months ago by Skelt0r.

    At least point me in the right direction for 4 & 6…

    Are you kidding me? This is the first time I have some questions after buying the theme about 10 times. Most questions I had have been answered by searching internet, including this forum. I saved Kriesi support a huge amount of time not asking easy questions that can easily be found searching better. Please reconsider my questions….

Viewing 5 posts - 1 through 5 (of 5 total)