[Resolved] Second menu right above footer?

Home Forums Support [Resolved] Second menu right above footer?

Home Forums Support Second menu right above footer?

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #498437
    Elisabeth

    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!

    #498553
    Leo
    Staff
    Customer Support

    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/

    #499646
    Elisabeth

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

    #499733
    Leo
    Staff
    Customer Support

    No problem!

    #533894
    Klaus

    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.

    #534018
    Leo
    Staff
    Customer Support

    That code should still work as long as you have the secondary navigation location set to above header:
    https://docs.generatepress.com/article/secondary-navigation-location/

    #534026
    Klaus

    Sorry it does not work!
    https://kuhnert.ch

    #534257
    Leo
    Staff
    Customer Support

    Hmm I don’t see secondary navigation anywhere.

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

    #534262
    Klaus

    I used plugin “Code Snippets”

    #534507
    Leo
    Staff
    Customer Support

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

    Is the snippet activated?

    #534736
    Klaus

    Yes, it is

    #535237
    Leo
    Staff
    Customer Support

    Can you answer my first question?

    #535356
    Klaus

    Yes, I’ve cleared cache!

    #535694
    Leo
    Staff
    Customer Support

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

    #674309
    David

    Hello

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

    Thanks
    Dave

Viewing 15 posts - 1 through 15 (of 22 total)
  • You must be logged in to reply to this topic.