Add Class to Labels

Forums › Forums › Search & Filter Pro › Add Class to Labels

Tagged: 

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #21914

    How can I add a class to the generated labels of my .searchandfilter ul > li li?

    Currently I have this:

    	<li class="sf-item-32"><label><input type='checkbox' name='_sft_product_tag[]' value='black-coach' data-sf-cr='_sft_32' data-sf-hide-empty='1' /> black coach</label>
    

    I need this class so I can change the background color if the checkbox is checked.

    Via CSS:
    .check-with-label:checked + .label-for-check {
    background: #8224e3 !important;
    }

    PS: I’m open to other way if I can’t add a class.

    Ross Moderator
    #22032

    Hi there, this is actually a bug in S&F, I won’t be adding classes but I will be changing the html structure to allow for the above you supplied to work.

    Thanks

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