TSinclaire

Member

Forum Replies Created

  • FYI for anyone who needs info:

    Create your custom menu, name it and save it.

    on the if (is_page(‘yourpage’)) code section, add:

    ‘menu’ => ‘yourcustommenuname’,

    I was able to remove the navbar on certain pages with this code:

    <?php /* The navigation menu */ ?>

    <div id=”header-menu-wrap”>

    <?php

    /* Header menu */

    if (is_page(‘services-2’)){

    $args = array(

    ‘container’ => ”,

    ‘menu_id’ => ‘header-menu’,

    ‘menu_class’ => ‘menu clearfix’,

    ‘fallback_cb’ => ”,

    ‘depth’ => 5,

    ‘theme_location’ => ‘Header Menu’,

    );}

    else

    {

    $args = array(

    ‘container’ => ”,

    ‘menu_id’ => ‘header-menu’,

    ‘menu_class’ => ‘menu clearfix’,

    ‘fallback_cb’ => ‘graphene_default_menu’,

    ‘depth’ => 5,

    ‘theme_location’ => ‘Header Menu’,

    );}

    But how can I specify one of my custom created menus for ‘fallback_cb’ => ”

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