How to Customize Your Zakra Theme Mobile Menu Position and Layout
Content
Many Zakra theme users want to adjust the position and layout of their mobile menu, particularly the hamburger icon and logo alignment. This is a common request to improve the mobile user experience and visual design on smaller screens. Based on community discussions, here are the most effective solutions.
Common Mobile Menu Customization Requests
- Moving the hamburger menu icon from the right to the left side.
- Centering the logo when the menu is moved to the left.
- Keeping the logo and hamburger icon on a single line to avoid wasted space.
- Changing the side from which the mobile menu expands (e.g., from right to left).
Solution: Using Custom CSS
Most of these layout changes can be achieved by adding custom CSS to your site. You can add this code by navigating to Appearance > Customize > Additional CSS in your WordPress dashboard.
1. To Move the Hamburger Menu to the Left and Center the Logo
This CSS will reposition the mobile menu toggle to the left and adjust the logo placement for a centered look.
.tg-site-header-bottom .tg-container--flex {
flex-direction: row-reverse;
}
2. To Make the Mobile Menu Expand from the Right
By default, the mobile menu often expands from the left. This code changes the animation so it opens from the right side of the screen.
.tg-mobile-navigation.tg-mobile-navigation--opened {
right: 0;
left: unset;
}
.tg-mobile-navigation {
right: -100%;
left: unset;
}
3. To Align the Logo and Hamburger Icon on One Line
If your logo and menu icon are breaking onto two lines, this CSS can help force them onto a single line by adjusting their flex properties.
@media screen and (max-width:768px) {
.tg-block--one {
flex-basis: 80%;
}
}
Important Considerations
- Test Responsively: Always check your changes on different screen sizes (mobile, tablet) after adding CSS.
- Child Themes: For more permanent and upgrade-safe changes, consider adding this code to a child theme's stylesheet.
- Theme Updates: The Zakra team frequently releases updates that may include new options for header layout. It's a good idea to check your theme's customizer settings after an update, as new features are often added.
These CSS snippets provide a strong foundation for customizing your mobile menu's position and behavior without needing to edit theme files directly.
Related Support Threads Support
-
Main menuhttps://wordpress.org/support/topic/main-menu-29/
-
Logo and hamburger menu on same line in mobilehttps://wordpress.org/support/topic/logo-and-hamburger-menu-on-same-line-in-mobile/
-
Mobile menu font + logohttps://wordpress.org/support/topic/mobile-menu-font-logo/
-
Hamburger Menuhttps://wordpress.org/support/topic/hamburger-menu-8/
-
Move hamburger menu to left?https://wordpress.org/support/topic/move-hamburger-menu-to-left/
-
Logo Center & Menu Left – Search and Cart Icon on Righthttps://wordpress.org/support/topic/logo-center-menu-left-search-and-cart-icon-on-right/
-
Responsive menu after updatehttps://wordpress.org/support/topic/responsive-menu-after-update/
-
Dropdown menu moving to the left when you hover over half way the pagehttps://wordpress.org/support/topic/dropdown-menu-moving-to-the-left-when-you-hover-over-half-way-the-page/
-
Change Mobile Menu Expandhttps://wordpress.org/support/topic/change-mobile-menu-expand/
-
Change Mobile Menu Locationhttps://wordpress.org/support/topic/change-mobile-menu-location/
-
Header Menuhttps://wordpress.org/support/topic/header-menu-15/
-
Zakra Mobile Hamburger Menu Level with Logohttps://wordpress.org/support/topic/zakra-mobile-hamburger-menu-level-with-logo/
-
logo positionhttps://wordpress.org/support/topic/logo-position-23/
-
hamburgermenuhttps://wordpress.org/support/topic/hamburgermenu/