[Support request] secondary navigation float right and below

Home Forums Support [Support request] secondary navigation float right and below

Home Forums Support secondary navigation float right and below

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #846980
    Daniel

    Hi Guys

    I have this situation:
    secondary an primary menu swap

    Both Primary and Secondary navigation customizer settings:
    – Navigation Width: Contained
    – Inner Navigation Width: Contained
    – Navigation Alignment: Left
    – Navigation Location: Float Right

    And this CSS:

    @media
    (min-width: 769px) {
    .nav-float-right .site-logo {
    float: left;
    }
    }

    QUESTION: What’s the best way to swap positions between them. I mean, primary navigation above and secondary navigation below?

    Thanks in advance.

    #847080
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try these functions:

    add_action( 'wp', function() {
        remove_action( 'generate_before_header_content', 'generate_add_secondary_navigation_float_right', 7 );
    } );
    
    add_action( 'generate_after_header_content', function() {
        if ( function_exists( 'generate_secondary_navigation_position' ) ) {
            generate_secondary_navigation_position();
        }
    }, 50 );

    Let me know 🙂

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