Tagged: CSS, enfold, mobile, mobile search, search
Hey people,
I’d like to have the search visible on mobile as well. I’ve tried a few solutions here from the forum, e.g. https://kriesi.at/support/topic/search-box-in-mobile-responsive-menu – but I’m pretty sure things have changed with Enfold 3+ so I can’t seem to get anything to work. Could you please assist?
Many thanks
Hi osckarl!
Please add following code to Quick CSS
@media only screen and (max-width: 767px) {
.responsive #header .main_menu ul, .main_menu, #header_main_alternate {
display: block;
}
#top #menu-item-search {
display: block;
margin-top: -90px;
}
.av-main-nav > li { display: none; }}
Regards,
Yigit
Didn’t look awesome I’m afraid Yigit, the entire menu was visible and positions were off. Any other ideas?
Hey!
Menu items should be hidden. Replace the code with this:
@media only screen and (max-width: 767px) {
#top #menu-item-search {
display: block;
position: absolute;
right: 120px;
margin-top: -80px;
}
.responsive #header .main_menu ul, .main_menu, #header_main_alternate {
display: block;
}
.av-main-nav > li { display: none; }
}
Best regards,
Ismael
Hi again,
Same problem still, this is the result with the above code:
https://www.dropbox.com/s/ashkmpzy9pac0lc/IMG_7344.PNG?dl=0
Hi!
I’m sorry but it works well on our installation. Please give us admin rights, we’ll add it for you.
Regards,
Ismael
Hey!
You can check the site now. The search icon is added beside the mobile menu toggle.
Regards,
Ismael
Thanks! Please close this.