Show empty filters but in disabled state

Forums › Forums › Search & Filter Pro › Show empty filters but in disabled state

Viewing 7 posts – 1 through 7 (of 7 total)
  • Anonymous
    #33169

    Hey!

    Really live the plugin: Installed it and worked like a charm! ๐Ÿ˜‰

    But my client wants the filters/tags that are empty, to still be shown, but in a disabled state.

    Can I achieve this somehow directly via the plugin-settings? It would already work if the js that adds the post-count in brackets would also add an extra class to the items that are empty (0) I guess.

    Ross Moderator
    #33188

    Hey Luka

    This is not yet possible but something I’m planning on adding in ๐Ÿ™‚

    I’m afraid no timeframes just yet, but as its not a difficult addition I may look at including it in the next version.

    Thanks

    Anonymous
    #33196

    Cool! This sounds great! Also adding a “data-count”-Attribute would be nice for selecting elements with a specific count!

    Oh and one thing that would be especially great and super-easy to implement would be an optional “css-classname” field for each filter-module (most likely in the advanced settings tab) you add to your form for individual styling – also if you use multiple search forms on one website! ๐Ÿ™‚

    Ross Moderator
    #34036

    Hey Lucas

    I’ve added the count vars via data attributes and just sent a copy over to you.

    Thanks

    Anonymous
    #34040

    Thank you very much! Just in time for tomorrow’s client meeting! ๐Ÿ˜‰

    Cheers!

    Anonymous
    #34044

    And for someone who might find this issue and wants to know how to style the items that are empty:

    .sf-field-tag li[data-sf-count="0"]{
       // Remove click-event via CSS
       cursor: auto;
       pointer-events: none;
       // Style to your needs
       opacity: 0.5;
    }
    Ross Moderator
    #34102

    Thanks! Nice use of the pointer events ๐Ÿ™‚

Viewing 7 posts – 1 through 7 (of 7 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.