-
AuthorPosts
-
July 16, 2018 at 3:35 pm #985959
Hi, how can I make the mobile menu fixed so it will always stick to the top of the site even when scrolling?
Thanks.
July 16, 2018 at 5:40 pm #986007Hey DROR,
Add this to quick css:
.av-hamburger{ position: fixed!important; background: #fff!important; padding: 0px 0px!important; border-radius: 80px!important; width: 80px!important; height: 80px!important; }
Best regards,
Jordan ShannonJuly 17, 2018 at 8:40 am #986294Thanks Jordan but that looks very bad… I want the entire top section of the site to remain the same when scrolling. Not just the menu icon. The logo and the menu icon along with the white background.
July 17, 2018 at 3:15 pm #986468Hi bakbek,
Can you try adding this css code in QUick CSS (Located in Enfold > General Styling):
@media only screen and (max-width:767px) { .responsive #top #wrap_all #header { position: fixed; top: 0; } .responsive #top #main { padding-top: 80px !important; } }
Best regards,
NikkoJuly 17, 2018 at 5:29 pm #986520Thanks!
I tried implementing on another site but it isn’t working the same way. Do I need a different code for every site?
July 17, 2018 at 6:30 pm #986549Hi,
Yes each site would need its own unique implementation based on classes, id, etc.
Best regards,
Jordan ShannonJuly 18, 2018 at 10:56 am #986878Thanks Jordan. Can you tell me what would be the code to use on this site to make it work?
July 18, 2018 at 3:43 pm #987057Hi bakbek,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width:767px) { .responsive #top .av-main-nav .menu-item-avia-special { position: fixed; } }
If you need further assistance please let us know.
Best regards,
VictoriaJuly 18, 2018 at 4:05 pm #987072Hi Victoria, that didn’t work.
July 19, 2018 at 5:53 pm #987532Hi,
Add this to the very top of quick css so that it runs first:
@media only screen and (max-width:767px) { .responsive #top #wrap_all #header { position: fixed !important; } .responsive #top #main { padding-top: 150px !important; } }
Best regards,
Jordan ShannonJuly 22, 2018 at 5:07 pm #988437Still not working… any idea why?
July 23, 2018 at 10:33 am #988636Hi bakbek,
I have checked your site on my phone and the code works properly.
I could see the mobile menu fixed on top even when I’ve scrolled the page.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.