Archived topic
secondary menu at the bottom of the page
4 replies · Started by Tony on January 25, 2016
I put this in the wrong topic - apologies for the confusion. (the edit option disappears on posts)
Is there a way to have a/the secondary menu at the bottom of the page above the copyright bar?
It would be nice to have the option of moving, say, the ‘contact’ menu item there if the primary menu bar gets busy.
I tried a widget there but too much white space.
Hi Tony,
This should help: https://generatepress.com/forums/topic/drop-down-menu-in-widget/#post-167979
Pulling the bits together:
First You need to have secondary nav set to show up before the header
Does this code go in the functions.php file?
add_action('after_setup_theme','generate_navigation_below_footer_widgets');
function generate_navigation_below_footer_widgets()
{
remove_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 7 );
add_action( 'generate_after_footer_widgets', 'generate_add_secondary_navigation_before_header', 7 );
}
Then add this in simple css so any dropdown menus go up.
.secondary-navigation ul ul {
top: auto;
bottom: 40px; /* height of your secondary navigation */
}
Correct and correct :)
Thanks - will keep on file in case primary menu gets busy and I want secondary.
Might move 'contact' down there anyway at some point.