To vote or comment, enter your email and we'll send a magic link


Ability to style facets with utility classes


I'd like the ability to easily customize the facet styling in markup using utility classes and to be able to remove the default styles without breaking the javascript. Simple things like horizontal radios, buttons etc. and more control over design are a bit tricky currently. Would be great to have an easier way to template/create new custom facets and bring in additional js with alpine and styles with tw.

2 years ago

Comments (2)

We try to keep the facets minimally styled for this very purpose.

But you're corrrect, the existing classes are necessary for the JS event handlers to work correctly. I don't envision this part changing.

That said, it's entirely possible to de-register FacetWP's default stylesheet (front.css): https://facetwp.com/help-center/developers/advanced/facetwp_assets/

2 years ago

I understand, thanks. Will deregister and restyle. Any benefits (harm) to deregistering JS for facets that I'm not using?

2 years ago