[Resolved] Move Secondary Navigation before footer

Home Forums Support Move Secondary Navigation before footer

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1502930
    Chitika

    Hello.
    I’m trying to add this code –

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

    But the secondary navigation appears both above and below.
    How to make it appear only once.
    I removed the code btw,

    #1503239
    David
    Staff
    Customer Support

    Hi there,

    try this instead.

    1. Set the Customizer > Layout > Secondary Navigation –> Location to No Navigation
    2. Add this PHP Snippet:

    add_action( 'generate_before_footer', 'generate_secondary_navigation_position', 1 );

    #1503289
    Chitika

    Thanks @David. That worked perfectly.

    #1503627
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.