Site logo

Archived topic

Move the secondary menu location

1 reply · Started by Bebe on March 13, 2017

Viewing posts 1–2 of 2

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/

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/

This archived topic is closed to new replies.