[Support request] Move the secondary menu location

Home Forums Support [Support request] Move the secondary menu location

Home Forums Support Move the secondary menu location

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #290675
    Bebe

    I need to move the secondary menu location inside a header hook, and keep the styling. Right under the social media icons. How is that accomplished?
    http://absolutewebdesigns.co/casey/

    #290840
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You can set your Secondary Nav to float right, then tell it to display below all the other header content:

    add_action( 'after_setup_theme','tu_move_secondary_nav' );
    function tu_move_secondary_nav() {
    	remove_action( 'generate_before_header_content', 'generate_add_secondary_navigation_float_right', 7 );
    	add_action( 'generate_after_header_content', 'generate_add_secondary_navigation_float_right', 7 );
    }

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

    Then, you’ll need to float your site title or logo to the left with some CSS:

    .site-branding,
    .site-logo {
        float: left;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

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