public
Last active

Unregister navigation menus on your site using the Genesis Framework.

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8 9 10 11
<?php
//* Do NOT include the opening php tag
 
//* Unregister primary/secondary navigation menus
remove_theme_support( 'genesis-menus' );
 
//* Unregister primary navigation menu
add_theme_support( 'genesis-menus', array( 'secondary' => __( 'Secondary Navigation Menu', 'genesis' ) ) );
 
//* Unregister secondary navigation menu
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'genesis' ) ) );

<?php
//* Do NOT include the opening php tag

// ******************************************
// Code correction??
// ******************************************

//* Unregister primary/secondary navigation menus
remove_theme_support( 'genesis-menus' );

//* Register primary navigation menu
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'genesis' ) ) );

//* Register secondary navigation menu
add_theme_support( 'genesis-menus', array( 'secondary' => __( 'Secondary Navigation Menu', 'genesis' ) ) );

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.