-
AuthorPosts
-
October 23, 2021 at 6:12 pm #1326168
Hi dear Kriesi-team,
I wanted to create a sticky menu and found this snipped at enfold docs:
/* Burger icon background */
.av-burger-menu-main.menu-item-avia-special .av-hamburger {
padding: 25px;
position: fixed;
right: 10px;
top:0;
}/* Icon Position */
.av-hamburger span {
top: 13px;
}#header.header-scrolled .av-hamburger span {
top:0;
}It worked for the burger menu, but not for the search-dropdown. So I came up with this one:
.html_burger_menu_active #top #wrap_all .menu-item-search-dropdown > a {
position: fixed;
}Unfortunately this is happening: https://imgur.com/7DYfUtt
I would like to achieve this: https://imgur.com/fDOWgow
Thank you soooo much for your help ^^
Best regards,
VeronikaOctober 23, 2021 at 8:13 pm #1326178Hey Veronika,
Thank you for the screenshot, try adding margin-top to your css to this:.html_burger_menu_active #top #wrap_all .menu-item-search-dropdown > a { position: fixed; margin-top: 30px; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeOctober 23, 2021 at 8:36 pm #1326180Hi Mike,
thanks for the fast response. Unfortunately it is doing weird stuff when clicking the burger menu and the search icon. the whole page is grey.
Any suggestions?
best,
Veronika ^^October 23, 2021 at 10:45 pm #1326186Hi,
Thank for the gif, the reason the page turned gray was because the search field was being moved 1322px from the left which is off your page, I didn’t find what was moving it but you site acts strangely in the background. You also had an issue with the menu and search links overlapping. I adding this css to your Quick CSS and it works for desktop but you may need to fine-tune it for mobile..html_burger_menu_active #top #wrap_all #header #avia-menu .av-burger-menu-main.menu-item-avia-special > a{ width: 58px; position: fixed; right: 20px; top:40px; } .html_burger_menu_active #top #wrap_all #menu-item-search > a { height: 56px; top: 100px; position: fixed; right: 20px; display: inline; } #menu-item-search .avia-search-tooltip.avia-tt { left: -136px!important; top: 120px!important; }
Please clear your browser cache and check.
I see that you are using Elementor so I wonder if that is the issue with your site acting strangely in the background, typically other page builders conflict with Enfold.Best regards,
MikeOctober 24, 2021 at 8:40 am #1326213Hi Mike,
thank you very much for your help :) it look perfect
Best regards,
VeronikaOctober 24, 2021 at 12:40 pm #1326224Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Sticky search-dropdown’ is closed to new replies.