Centering the "Select Page" Mobile Menu Bar Button

Written by Dan Mossop

The Divi Theme includes several mobile menu bar styles. When the desktop version of the site is using a centered header style, the mobile site will display a grey bar with the text "Select Page" and a right-aligned mobile menu button. If you'd like to center the mobile menu button within the header, you can use the following CSS:

/* Center the mobile menu bar button */
.et_header_style_centered #main-header .mobile_menu_bar_toggle {
	left: 50%;
	left: calc(50% - 16px);
}

Unlock the Full Potential of Shortcodes in Divi!

Empower your Divi site with increased functionality by enabling shortcodes in various module fields. This helps enhance customization and adds depth to your pages, complementing CSS adjustments like centering elements in your mobile menu.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.