
-
AuthorPosts
-
March 21, 2025 at 11:43 am #1479856
Hello,
I have customized a search bar and I want it to remain visible even when scrolling the page. It is located just below the header and I would like it to stay glued to the header, even when it shrinks when scrolling down
Is there a way for the search bar to stay glued under the menu or to be able to integrate it into the header so that it remains visible all the time?
Thank you for your help,
-
This topic was modified 1 week, 5 days ago by
sitadi.
March 23, 2025 at 5:31 pm #1479986Hey sitadi,
The login to the live site is not working, but for the test site the search is sticky but seems to be in the wrong position when the header when it shrinks,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#header.header-scrolled ~ #main #av_section_1 .avia_search_element { top: -64px; position: relative; } #header ~ #main #av_section_1 .avia_search_element { top: -30px; position: relative; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeMarch 24, 2025 at 8:27 am #1480026Hi Mike,
Thank you for your help. It is better with this CSS.
Can you please help me to find the best CSS for mobile display ? Every elements are superimposed. We can stay on the test site because the menu in the live site is not ready to work on it.
Best regards,March 25, 2025 at 6:26 am #1480098Hi,
You can try this css code to adjust the display of the header on mobile view:
@media only screen and (max-width: 767px) { /* Add your Mobile Styles here */ .responsive #header_main .container { height: 130px !important; } #top .avia_search_element.av-m8j6ucsp-f1ed25db4fcf2e1d4ba1dd7653626aed #s.av-input-field { line-height: 33px; height: 33px; color: #bed028; font-size: 14px; } #top #searchform_element { margin-bottom: 0; } #top .avia-section.av-m8h8o2m6-a6ff6f0926c56ce5cb244fa93948b320 { background-color: transparent; background-image: unset; margin-top: 5px; margin-bottom: 0px; position: absolute !important; margin-top: 0; z-index: 5000; margin-top: -40px; } #top .av-main-nav-wrap ul { margin: 0; padding: 0; } }
Best regards,
IsmaelMarch 26, 2025 at 8:32 am #1480186Thank you Ismael, it’s perfect !
Best regards,
IdaMarch 26, 2025 at 4:34 pm #1480211Hi,
Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardMarch 31, 2025 at 5:50 pm #1480538Hello Rikard,
Can you help me to put the burger button and the logo in the foreground, they are hidden behind the search section. I tried to set up the z-index but nothing works.. So I can’t click on the menu or on the logo
On the other hand, la barre de recherche, dans la version mobile, reste affichée à l’écran, est-il possible de la coller tout en haut de l’écran lorsqu’on scroll vers le bas ?
Thank you very much in advance for your help
April 1, 2025 at 5:05 am #1480549Hi,
Could you provide a screenshot of the issue? We tried logging into the site, but the account details above are incorrect. Please provide another login account so we can check the live site.
Best regards,
IsmaelApril 1, 2025 at 9:48 am #1480564This reply has been marked as private.April 2, 2025 at 5:41 am #1480611Hi,
Thank you for the update.
Instead of placing the search widget inside a Color Section, try inserting it directly into the header using a widget or widget area. Please refer to this documentation for more info.
— https://kriesi.at/documentation/enfold/header/#adding-a-header-widget-area
This is the html of the search element, which can be placed inside a Text widget: https://pastebin.com/K8x7qu9g
Best regards,
Ismael -
This topic was modified 1 week, 5 days ago by
-
AuthorPosts
- You must be logged in to reply to this topic.