Site logo

Archived topic

secondary menu below the whole page

14 replies · Started by cliqous on November 23, 2014

Viewing posts 1–15 of 15

how can i move the secondary menu to the footer (below the footer widget)
for now, i can only move it above the header, below the header, etc.

Hmm let me look at the best way to do this - may add it as an option if I find a good way.

Will post back with solution for you.

I will wait for it Tom.

I'll give you some code for now :)

Where do you have the secondary menu currently set?

currently it is just above the header.

like this one in the home page:

SECONDARY MENU (left)
HEADER LOGO (left)
PRIMARY MENU (left)

This code should work:

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 );
} 

You can use a plugin like this to add the code: https://wordpress.org/plugins/code-snippets/

Let me know if this works or not :)

thank you

You're welcome :)

I can't get this to work...simply want to add the secondary menu to below the footer.

The above code should work as long as you have your secondary nav set to show up before the header? Can you confirm?

Yes its working perfectly as you said.. Thank you tom :)

No problem :)

Hi there,

I'm wondering if there is a way to have a top navigation with my site pages and a side navigation for external links? I feel like the above description is similar to what I need but, I would like it in the left sidebar.

Thanks!
Renae

I figured it out. Thanks anyway!

Awesome, glad you got it sorted :)

This archived topic is closed to new replies.