fs-cmsfilter-field="category"
and fs-cmsfilter-value=""
to the "View All" button to act as a reset.fs-cmsfilter-active-class="is-active"
on the button group to ensure the active button gets the class, including "View All" when no filter is selected.To apply the is-active
class to a "View All" radio button when using FinSweet’s Attributes for CMS filtering, you need to set up the attribute correctly and ensure the active class is applied when no specific filter is selected.
fs-cmsfilter-controls
).fs-cmsfilter-field
and fs-cmsfilter-active
attributes.fs-cmsfilter-active-class="is-active"
attribute on the wrapper or individual buttons to define the active styling class.is-active
class when active:fs-cmsfilter-field="category"
(or whatever your filter field is).fs-cmsfilter-value=""
(an empty value indicating no filter).Example:
fs-cmsfilter-field="category"
fs-cmsfilter-value=""
fs-cmsfilter-active
fs-cmsfilter-active-class="is-active"
is-active
class to whichever button matches the current filter selection—including “View All” when no filter is applied.is-active
class appropriately on load if no filter is selected.Assign fs-cmsfilter-field
and an empty fs-cmsfilter-value
to your “View All” button. Use fs-cmsfilter-active-class="is-active"
on the buttons or group to trigger the class. FinSweet will auto-apply the is-active
class to "View All" when no filter is active.