- This topic has 1 reply, 2 voices, and was last updated 10 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Add Class to Labels
Tagged: css
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.
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