Style applied to radio filter button dissappear after ajax call

hello,

I have two additional fields within the taxonomy created with ACF ( color and HTML) and through js and PHP, I was able to style radio buttons for filters.

But at the moment of call in Ajax the style is removed, I don’t know what to do to be able to solve this, I tried with mutation observer but the page recurs endlessly and crashes.

Does anyone have a solution?

Hi, I ran into the same problem. Had to add the styles manually in the manual css input to make them stick.

edit
found the solution: you need to add an ID to your filter because styling happens on the id level. hope that helps anyone having the same problem …