Login

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

0

Ability to style facets with utility classes

closed

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.

8 months 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/

8 months ago

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

8 months ago