Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #591646

    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!

    #591655

    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

    #591664

    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%.

    #592127

    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

    #592175

    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!

    #593346

    Please help me

    #594474

    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

    #594940

    I want it to be at 100% width under 768px.

    #596123

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.