Exclude Pages in Graphene

  • Eric

    #1055

    Hi Everybody..

    I’ m using the wonderful theme Graphene.

    In my Webshop I need to link every produkt to a unique page for everyproduct.

    Of course I don’t want thoose pages to be displayed in the Header Menu.

    So I open header.php to exclude the page Id of the once I want to hide.

    /* Header menu */
    $args = array(
    'container' => '',
    'menu_id' => 'header-menu',
    'menu_class' => 'menu clearfix',
    'fallback_cb' => 'graphene_default_menu',
    'depth' => 5,
    'exclude' => '967',
    'theme_location' => 'Header Menu',
    );
    wp_nav_menu(apply_filters('graphene_header_menu_args', $args));

    /* Secondary menu */
    $args = array(
    'container' => '',
    'menu_id' => 'secondary-menu',
    'menu_class' => 'menu clearfix',
    'fallback_cb' => 'none',
    'exclude' => '967',
    'depth' => 5,
    'theme_location' => 'secondary-menu',

    This is the original Header.php. I tride to just add page id after ‘967’, but this doesn’t work.

    Can anybody help me, how to exclude pages

    (i’m very new to programming and such.. )

    Thanks you all !!

    Admin

    Syahir Hakim

    #14435

    Use Custom Menu in WordPress admin > Appearance > Menus.

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

You must be logged in to reply to this topic.