Hi,
I’m looking to center the logo in my mobile header only, have the search on the left and menu on the right.
The closes I’ve gotten is using the following code from https://docs.generatepress.com/article/centering-logo-mobile-header/
#mobile-header .site-logo {
position: absolute;
left: calc( 50% - 131px); /* 50% from the left - half your image width */
}
#mobile-header button.menu-toggle {
position: absolute;
left: 0;
}
#mobile-header .mobile-bar-items {
margin-left: auto !important;
}
But the search/menu still need to be swapped and the logo isn’t won’t fit between them.
I’ve tried a number of the “center mobile header” solutions on these forums, but none seem to work – though I realize that this ordering goes against the grain.
I am using Navigation as Header, Mobile Header is On and sticky header is off.
Any direction you are able to provide would be appreciated.
Thanks,
Alex