How to get two menus in header to align to the right with padding?
-
Just wondering how to get two menus: header-menu and social-menu to sit above and below each other to the middle-right of the header?
I’ve created a custom menu in functions.php for social icons with this code.
function register_my_menus() { register_nav_menus( array( 'footer-menu' => __( 'Footer Menu' ), <strong> 'social-menu' => __( 'Social Menu' )</strong> ) ); } add_action( 'init', 'register_my_menus' );
Then I have inserted it into the header here:
</div> <strong><?wp_nav_menu( array( 'theme_location' => 'social-menu', 'container_class' => 'social_menu_class' ) ); ?></strong> <?php if ( has_nav_menu( 'primary-menu' ) ) { ?> <nav id="primary-nav" class="primary-nav" role="navigation"> <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary-menu', ) ); ?> </nav> <?php } ?> </div>
How then do I get the two menus to align to the middle-right above and below each other? Whilst having the background colour match the original header colour?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to get two menus in header to align to the right with padding?’ is closed to new replies.