[Resolved] Move Primary Navigation to above Footer (bottom)

Home Forums Support [Resolved] Move Primary Navigation to above Footer (bottom)

Home Forums Support Move Primary Navigation to above Footer (bottom)

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1397390
    Chitika

    Hello.
    I would like my whole primary navigation system moved to the bottom (home and single and archives).
    This includes logo, menu, and search function.
    If that meant moving the total header to the bottom, that is also ok.

    #1397417
    Leo
    Staff
    Customer Support

    Hi there,

    Just to confirm, you only want to do this for the home page, single posts, and all archives? Or for the entire site?

    Let me know ๐Ÿ™‚

    #1397990
    Chitika

    The entire site.
    To make it more clear, I want the entire blue bar at the top to go the bottom above the footer.
    This includes – logo, menu, search.
    I am not sure whether its the entire header or only the primary navigation to be moved.

    #1398132
    Leo
    Staff
    Customer Support

    Try this PHP snippet:

    add_action( 'after_setup_theme', function() {
        remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
        add_action( 'generate_before_footer', 'generate_add_navigation_after_header', 1 );
    });

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

    #1398181
    Chitika

    When I added the above code to functions.php file, code is showing at the top. Not expected result.
    Is there any other code to be added to the above.

    #1398519
    David
    Staff
    Customer Support

    Hi there,

    can you add the code so we can see what the problem is ? Or share a screenshot of the issue

    #1399951
    Chitika

    @Leo @David. Sorry for the trouble. I pasted it in the wrong account. Now its working. Thanks for the support.

    #1400054
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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