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)