-
AuthorPosts
-
March 16, 2018 at 7:50 pm #928240
Hi Team,
is there an solution to make toolbar AND burgermenu sticky on mobil view
for this website (see private content)?Thank you and best regards
MikeMarch 19, 2018 at 1:57 pm #929056No Ideas?
March 19, 2018 at 4:56 pm #929148Hi,
Please try the below CSS
/* Sticky header on mobile */ @media only screen and (max-width: 767px) { .responsive #top #main { /* Margin top value should be equal to header height*/ margin-top: 180px; } .responsive #top #wrap_all #header { position: fixed; } }
You can also use a fullwidth submenu element and use the stick to top option in the element.
If you still have an issue provide a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
VinayMarch 23, 2018 at 7:23 pm #932088Hi Vinay,
thank you for your support.
But sorry this will not work, after I use your solution there is no sticky header with burger menu.Best Regards
MikeMarch 24, 2018 at 8:52 pm #932476Hi,
Sorry, I thought it was the logo area you were referring to but it appears you are using a slider to design the site header.
It works nicely as it is right now. To make it sticky will be tricky because a fixed position element will let other elements around it take its place unless it is in a separate container it is not possible to perfectly align a fixed element in a relationship with its neighbour. (This will block the image below so you may have to manually add a white space element manually for each page).Add the below CSS to Enfold > General Styling > Quick CSS
@media only screen and (max-width: 767px) { .av-logo-container { position: fixed; top:0!important; background: #f66f00; right:0; left:0; z-index:999999!important; } .avia-fullwidth-slider.avia-builder-el-0 { border-top: none; position: fixed; top: 50px; z-index: 99; } }
If you don’t like the result please try adding the banner as a header background image from enfold options
Enfold > General Styling > Logo area > Background ImageThen Select a suitable header layout from
Enfold > Header > Header Layout > Menu and Logo PositionSet a custom height for the header from
Enfold > Header > Header Layout > Header SizeBest regards,
Vinay- This reply was modified 6 years, 8 months ago by Vinay.
-
AuthorPosts
- You must be logged in to reply to this topic.