- This topic has 4 replies, 2 voices, and was last updated 4 years, 4 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Community Forums › Elevate Theme Support › Footer Menu not showing as an option
Hi Wes
I’m trying to add in a footer menu. I see it coded in functions.php but it’s not an option for menu location on the menu editor.
// add theme support for a tertiary navigation menu
add_theme_support ( 'genesis-menus' , array (
'primary' => 'Primary Navigation Menu' ,
'secondary' => 'Secondary Navigation Menu' ,
'footer' => 'Footer Navigation Menu'
) );<!--formatted-->
I believe it’s because by unregistering the secondary nav, the footer nav was excluded?
This is from lines 93 and 94:
//* Unregister secondary navigation menu
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'genesis' ) ) );<!--formatted-->
Try adding this code and let me know if it works –
add_action( 'genesis_footer', 'genesis_do_subnav', 5 );
I tested on a local demo install and it seemed to work for me.
I added that directly below the unregister secondary nav menu bit in functions.php.
nothing. Not added as a location in the menu editor.
Have you tried removing the secondary nav code? Or any other parts of the code that customizes the menu?
You could also remove all the code for the menu and just add it in manually if you think one might be preventing the other from showing up. Here are some examples – https://wpsites.net/wordpress-admin/nav-menu-genesis-footer/
Ha, got it to work.
Replaced the //unregister secondary navigation bits to the bit I had and it created the extra menus.
Now just need to place them properly. You link will help with that.
All the best for 2019. I’ll be in touch about some custom work