-
AuthorPosts
-
December 1, 2016 at 2:49 pm #719251
Hello,
when we choose in enfold / Header / HeaderLayout / Display of menu items -> Display as icon
this NICE Hamburger Menu appears.But when we come to the mobile breakpoint, the older »enfold mobile menu« shows up again.
Is it possible to use the NICE menu in the mobile version too, so, all the time?
Regards
December 5, 2016 at 5:17 pm #720548Hey Jochen,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
@media only screen and (min-width: 768px) { li#menu-item-burger { display: none !important; } .js_active.html_burger_menu #avia-menu > li { display: block; }} @media only screen and (max-width: 767px) { #advanced_menu_toggle, #advanced_menu_hide { display: none !important; } .responsive.html_mobile_menu_tablet .main_menu .avia-menu { display: block; }}
Best regards,
YigitDecember 5, 2016 at 6:33 pm #720587Hi Yigit, thank you, if I write:
@media only screen and (max-width: 767px) {
#advanced_menu_toggle, #advanced_menu_hide {
display: none !important;
}
}the mobile menu stays invisible, that´s fine.
But how do I tell the NICE “Hamburger Menu” (the animated one) to stay visible from min-width: 0px ?
The other lines you wrote, don’t cause that …December 5, 2016 at 6:44 pm #720599Hi!
There is no min-width: 0 actually, cause in that point, the page will be closed.
Can you please rephrase or explain us with an example, so we can understand exactly which point you want to cover?Cheers!
BasilisDecember 5, 2016 at 6:57 pm #720606… i want to display the “animated Hamburger Menu” or the “normal menu” all the time (see picture marked red)
not only in the normal version of the website, so in the mobile version of the website too.December 5, 2016 at 7:34 pm #720634Hey!
Please change the code to following one
@media only screen and (max-width: 989px) { #advanced_menu_toggle, #advanced_menu_hide { display: none !important; } .responsive.html_mobile_menu_tablet .main_menu .avia-menu { display: block; }}
If that too does not help, please create a temporary admin login and post it here privately so we can look into it.
Regards,
Yigit- This reply was modified 7 years, 11 months ago by Yigit. Reason: updated the code
December 5, 2016 at 8:14 pm #720653… no, below 768 pixel the “animated Hamburger Menu” menu disappears …
Maybe we just have to change the breakpoint?
December 5, 2016 at 8:19 pm #720658Hi!
I have updated my code above if you have missed it, please try it. If it did not work, please create a temporary admin login and post them here privately
Cheers!
YigitDecember 5, 2016 at 8:21 pm #720659so the best would be, not to show any mobile-menu-version at all
or other way round
only the normal menu for all the view-port situationsDecember 5, 2016 at 8:21 pm #720660no I tried the updated code
December 5, 2016 at 8:22 pm #720661with !important; too
December 5, 2016 at 8:24 pm #720667it is the unchanged “creative-studio” installation, this is the only thing i changed in style.css.
@media only screen and (max-width: 989px) {
#advanced_menu_toggle, #advanced_menu_hide {
display: none !important;
}
.responsive.html_mobile_menu_tablet .main_menu .avia-menu {
display: block !important;
}
}December 5, 2016 at 8:48 pm #720674Hi!
It does work fine on my end. Only way for us to check why it is not working on yours is checking your backend. If you would not like to share the logins, unfortunately, there is not much we can do to help.
Best regards,
YigitDecember 5, 2016 at 9:13 pm #720685sorry, no problem sharing the login …
now I placed the code from the style.css in the enfold / Quick CSS field
login below …December 5, 2016 at 9:14 pm #720686I tested in Mac Chrome & Safari …
December 5, 2016 at 9:24 pm #720699Hey!
I changed the code to following one
@media only screen and (max-width: 990px) { #advanced_menu_toggle, #advanced_menu_hide { display: none !important; } .main_menu .avia-menu { display: block !important; float: right; margin-top: 10px; } } @media only screen and (max-width: 767px) { .main_menu .avia-menu { margin-top: -80px !important; } }
Please review your website now
Regards,
YigitDecember 5, 2016 at 9:34 pm #720705YES, this works. Thank you Yigit.
Another question, how do I let stay the social icons too?
December 6, 2016 at 12:44 pm #720958Hello Yigit,
…and could you please tell me where to change the colours of the icons (hamburger & close X), please?December 6, 2016 at 1:17 pm #720967this works for the colors
.av-hamburger-inner,
.av-hamburger-inner::before,
.av-hamburger-inner::after {
background-color: black !important;
}.av-hamburger–spin.is-active .av-hamburger-inner,
.av-hamburger–spin.is-active .av-hamburger-inner::before,
.av-hamburger–spin.is-active .av-hamburger-inner::after {
background-color: red !important;
}December 6, 2016 at 1:17 pm #720968the thing with the social icons is dissolved too
December 6, 2016 at 1:46 pm #720980this can be closed so, thank you
December 6, 2016 at 3:08 pm #721041 -
AuthorPosts
- The topic ‘menu item ICON in mobile version’ is closed to new replies.