Reply To: secondary menu at the bottom of the page

Home Forums Support secondary menu at the bottom of the page Reply To: secondary menu at the bottom of the page

#168139
Tony

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 */
}
  • This reply was modified 4 years, 10 months ago by Tom.