Vertical Align Title Area & Menu On Desktops & Mobiles

The solution in this download folder enables you to add a logo of any size and vertically align it with your nav menu like this :

This vertically aligns all site header elements including your site title or custom logo, nav menu and the responsive menu toggle which kicks in when your screen width hits 960px if using the Genesis Sample theme.

Demo Video

Shows the custom logo and menu vertically aligned on both desktops and mobile screens.

Tested using the Genesis Sample child theme by StudioPress.

Installation Steps

There’s 2 steps :

  1. # Copy & paste the CSS from the style.css file to the end of your child themes style sheet and clear all types of caching.
  2.  

  3. # Go to Customize > Site Identity and set the width of your logo. In this case, the logo is 100px in height by 133px in width.
  4.  

Download Folder

Note : You will need to modify the value for the following CSS media query if your logo is not 100px in height to vertically align the menu toggle icon on mobile screens.

@media only screen and (max-width: 960px) {

.menu-toggle {
     margin-top: 30px;
}

}

Related Tutorials

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.