-
Sameer
Greetings.
In the Mobile version, hamburger menu and search modal are not centered below the logo.
Please guide how to achieve this.
Thanks.
-
Hi there,
You can give this CSS a shot:
@media (max-width: 860px) { .has-inline-mobile-toggle .mobile-menu-control-wrapper { margin-right: auto; } nav#sticky-navigation .navigation-branding { width: 100%; flex-grow: 1; padding-inline: 30px; margin-left: 0; } nav#sticky-navigation .sticky-navigation-logo, .navigation-branding img { width: 100%; height: auto; padding-bottom: 0; } nav#sticky-navigation .inside-navigation { justify-content: center; } }
Learn how to add CSS: https://docs.generatepress.com/article/adding-css/
Alternatively, I would also recommend the mobile header feature:
https://docs.generatepress.com/article/mobile-header/It should look slick and takes less space if you only use the AH icon as the mobile header logo.
Let me know 🙂
-
Sameer
The given CSS fixed the centering issue however as I scroll down, the sticky logo, hamburger menu and search modal are not centered on mobile version.
(I would have gone for icon logo to be used in mobile header but it does not make the business name clear.)
Thanks.
-
Hi Sam,
I updated Leo’s CSS, can you give this one a try?
https://generate.support/topic/mobile-version-menu-and-search-modal-not-centered/#post-112924 -
Sameer
Worked great, thanks much.
-
You are welcome 🙂
- You must be logged in to reply to this topic.