- This topic has 2 replies, 2 voices, and was last updated 6 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 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 › How to add own class to each filter?
Tagged: V3
Could you please tell me how to add own class to filters like below?
<li class=”sf-field-category” data-sf-field-name=”_sft_category” data-sf-field-type=”category” data-sf-field-input-type=”checkbox”> <ul data-operator=”or” class=””>
<li class=”sf-level-0 sf-item-122″ data-sf-count=”10″ data-sf-depth=”0″><input class=”sf-input-checkbox” type=”checkbox” value=”suita_shi” name=”_sft_category[]” id=”sf-input-4909cfbcc336c0e8df6324a0654b8c3a”><label class=”sf-label-checkbox” for=”sf-input-4909cfbcc336c0e8df6324a0654b8c3a”>吹田市<span class=”sf-count”>(10)</span>
Also, I would like to set category-links to each check-box, how to do that?
Regars,
At the moment, our plugin allows you to add classes only at the input level, and not the containers outside that:
https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object
We do plan to add more options in V3, but this is still some months away.
You could use JavaScript to do this, but might need to trigger that more than once on the page, as shown in this post: