Hello,
I’ve managed it to get the ajax search form in the secondary nav on mobile devices, but I want the form to be at 100% screen width.
Thanks in advance!
Hi De Groot!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
@media only screen and (max-width: 480px) {
.avia-search-tooltip { width: 480px; }
#top #searchform>div { max-width: 480px; }}
Best regards,
Yigit
Thanks for your help, but unfortunately this doesn’t work.
You can look at my website for example.
I just want it to be at the same width as the screen; 100%.
Hi!
Please add following code to Quick CSS
@media only screen and (max-width: 480px) {
.avia-search-tooltip {
margin-left: -143px;
width: 316px;
}}
and it should like following – screenshot in private content field
Best regards,
Yigit
Thanks again, this works, but when the screen gets wider, it’s not on the full width of the screen anymore.
E.g., if the screen-width is 420px, the input form has to be 420px wide as well, and so on. So basically 100% width.
I’ve tried to replace the default width of 300px to 100%, but then the input form becomes very small.
Thanks in advance!
Please help me
Hey!
You are going to need to adjust the CSS code for each screensize respectively. Under which pixel would you like to make search fullwidth?
Cheers!
Yigit
I want it to be at 100% width under 768px.
Hi!
Please add this in order to adjust the search bar:
@media only screen and (max-width: 767px) {
.avia-search-tooltip {
box-shadow: none;
top: 50px !important;
margin-left: 0;
width: 750px;
position: absolute;
margin-left: -575px;
}
}
Create new css media queries for different screen sizes.
Best regards,
Ismael