• Hi there,

    I am using a woocommerce site, I have a page in wordpress that I want the menu I am using in the woocommerce store to appear on.

    Here is the code I am using – but it is not working – can you please let me know what it wrong – thanks!

    <?php if ( is_home() || is_page() ) { wp_nav_menu( array('menu' => 'staticpages', 'menu_class' => 'nav fl' ));
    }
    elseif ( is_page('13'))) { wp_nav_menu( array('menu' => 'nav', 'menu_class' => 'nav fl' ));
    }
    else { function_exists( 'has_nav_menu') && has_nav_menu( 'primary-menu') ) { wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fl', 'theme_location' => 'primary-menu' ) );
    }  ?>
Viewing 1 replies (of 1 total)
  • Thread Starter callender

    (@jimcallender)

    This is in the header.php file. And page is the unique page I want the menu ‘nav’ to appear in..

    Much appreciated for any help..

    Jim

Viewing 1 replies (of 1 total)
  • The topic ‘Page with unique menu showing’ is closed to new replies.