responsive search filter

Forums › Forums › Search & Filter Pro › responsive search filter

Tagged: 

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #198597

    good morning,
    congratulations for the filter is wonderful !!!
    I need to make the “compact” filter in the smartphone.
    In the desktop and tablet is fine as you can see: link

    in the smartphone I would like the fields to be two by line.
    See:
    can you help me ?

    thank you

    Trevor
    #198600

    You would probably need to use the CSS shown here:

    https://searchandfilter.com/documentation/getting-started/display-search-form/#making-your-search-form-horizontal

    … but surround it it with a media query to restrict to screen sizes to whatever mobile breakpoint your theme is set to, e.g 767px. Like this:

    @media only screen and (max-width: 767px) {
      .searchandfilter > ul > li {
        display: inline-block;
        vertical-align: top;
        padding: 0 20px;
      }
    }
    Anonymous
    #198606

    sorry, it does not change anything!

    Trevor
    #198611

    Try this:

    @media only screen and (max-width: 767px) {
      .searchandfilter > ul > li {
        display: inline-block;
        vertical-align: top;
        padding: 0 20px 0 0;
        margin-bottom: 10px;
      }
      .searchandfilter ul {
        margin-left: 0;
        margin-right: -10px;
      }
    }

    BUT, bear in mind that it will still go to one column if the screen is too narrow.

Viewing 4 posts – 1 through 4 (of 4 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.