Site logo

Archived topic

Second menu right above footer?

21 replies · Started by Elisabeth on February 16, 2018

Viewing posts 1–15 of 22

Hi! This is Elisabeth again... I have a question: is it possible to put my second menu (the grey one on the site), right above the footer? Thank you!

Hi there,

Try this snippet:

add_action( 'after_setup_theme', 'lh_move_secondary_nav' );
function lh_move_secondary_nav() {
    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 );
}

Adding PHP: https://docs.generatepress.com/article/adding-php/

It worked like a charm! Thank you so much Leo! Elisabeth

No problem!

Sorry, but it doesn’t work on my side.
I’m new with WP and your templates, maybe I misunderstood something or done it wrong.
Is this new position available in the layout?
But I would really like to have the secondary menu above the footer.

Hmm I don't see secondary navigation anywhere.

How did you add the code? Did you try clearing caching plugin?

I used plugin "Code Snippets"

I still don't see the secondary navigation anywhere. Where did you set it in the customizer?

Is the snippet activated?

Yes, it is

Can you answer my first question?

Yes, I've cleared cache!

I meant where is the secondary navigation location set at currently?

Hello

How do I get the secondary menu to sit above footer widgets instead of below them?

Thanks
Dave

This archived topic is closed to new replies.