Forums Forums Search & Filter Pro Disable All Items

Viewing 10 posts - 1 through 10 (of 11 total)
  • Anonymous
    #264962

    I swore the free version had a shortcode string to disable the “All Items” option for an individual field. Is there an easy way to disable that on the Pro version?

    Trevor
    #265020

    You would need to use CSS to hide it.

    Anonymous
    #265043

    I tried finding a unique class or Id for that item on that field but they seem to all be shared, except the one ID that looks to be dynamically generated every load. I have three fields using radio inputs. Does anyone have any insight on how to isolate the “All items” on one field to then display:none it?

    Trevor
    #265045

    All Items is usually the first, so you could use the CSS pseudo class first-child, like this:

    .searchandfilter select > option:first-child
    {
        display:none;
    }
    Anonymous
    #265051

    I’m not in front of it right now, but wouldn’t that hide the first option for all of the fields? I’m just looking to hide it on one of the three I have displayed

    Trevor
    #265053

    Are you able to send me a live link/URL to your search page so I can take a look?

    Which field is it?

    Anonymous
    #265065

    Yeah it’s here:

    https://wnytennis.thequiltedsquirrel.com/programs/

    Just trying to hide the “All Levels” select option

    Trevor
    #265072

    Because of other code you have written I must use !important:

    .searchandfilter .sf-field-taxonomy-level > ul > li.sf-level-0:first-child {
        display: none !important;
    }
    Anonymous
    #265180

    Perfect, thank you!

    Trevor
    #265192

    Is it OK to close this thread for now?

Viewing 10 posts - 1 through 10 (of 11 total)