Lego2012
1/24/2017 - 9:36 PM

Add Theme Support for Genesis Menus

Add Theme Support for Genesis Menus

<?php
// Code goes in child theme’s functions.php.
// Add Theme Support for Genesis Menus
add_theme_support( 'genesis-menus', array(
    'primary'   => __( 'Primary Navigation Menu', 'genesis' ),
    'secondary' => __( 'Secondary Navigation Menu', 'genesis' ),
    'header'    => __( 'Header Navigation Menu', 'genesis' ),
) );

// Useful for remaining the labels of menus and adding/removing menus.

// Ex.: To change “Primary Navigation Menu” label to “Main Menu” and to unregister Secondary Navigation Menu:

// Add Theme Support for Genesis Menus
add_theme_support( 'genesis-menus', array(
    'primary'   => __( 'Main Menu', 'genesis' ),
    'header'    => __( 'Header Navigation Menu', 'genesis' ),
) );