I’ve enjoyed working with Enfold for a while, but with the recent change from the select box style mobile menu to the “slide out from the side” has left something to be desired for the mobile experience. Clients don’t like “menu” buttons overlapping their logo.
So, I’m looking for an alternate mobile menu and I’ve got everything working well with one exception.
I can’t for the life of me get the logo centred on 767px and below.
I’ve added:
@media only screen and (max-width: 767px)
#top #advanced_menu_toggle {
display: none;
}
to the css and that hides the menu, but I can’t get the logo centred???
Any ideas? I’ve searched through the forum and other suggestions don’t work.
Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.responsive #header_main .inner-container .logo {
margin: auto;
display: block; }
Cheers!
Yigit
I tried that before, didn’t work. I just added it back as suggested above, still didn’t do it.
Hi!
Please try centering manually with following code then
@media only screen and (max-width: 480px) {
.logo { position: relative; left: 20px; }}
Best regards,
Yigit
It’s in there, no change.
Hey!
Please replace the code with this:
@media only screen and (max-width: 767px) {
.responsive .logo a {
display: inline-block;
vertical-align: middle;
}
.responsive.html_header_top.html_logo_center .logo {
text-align: center;
}
}
Remove browser cache then reload the page.
Cheers!
Ismael
Hi Ismael,
I had to add width: 100%; to the .responsive.html_header_top.html_logo_center .logo class and it worked.
Thanks!