NO BUG: Rich Text Element gets auto formatted (wptexturize?)

Not sure if this is a bug or an intended feature (it’s not a new issue; old Bricks installations are affected as well), but all my quotation marks get “prettified” automatically in the frontend when I use a Rich Text Element. This doesn’t happen with the basic text element.
How can I turn this off? I know there’s this WP Core feature “wptexturize” which might be responsible. There are various solutions / code snippets to deactivate it, but nothing seems to work for Bricks Rich Text Elements.

Screenshot: Markup Hero - Free Screenshot & Annotation Tool

Hi Niko,
Seems like wptexturize is responsible for this. But you can disable it with this filter:

add_filter('run_wptexturize', '__return_false');

Best regards,
timmse

1 Like

Thank you! I had already tried exactly this snippet (or so I thought), but it didn’t work for some reason. Tried again today and now it works :person_facepalming: