I’m having an issue with text inside a heading block. In the editor, a straight single quote is shown. But, on the frontend, the quote is replaced by a smart (curly) quote. If I use an HTML block and substitute the quote for and HTML entity, then that quote is preserved.
In the editor:
On the frontend:
This topic was modified 1 year, 8 months ago by John Webber.
Thank you for sharing more details. I understand better now.
Any one of three things that you can try are:
Disabling plugins on the site one at a time to see if any have CSS/styling code that may be interfering here.
Change to a default theme, to see if that helps, in case the theme you are using may be adding styling/CSS.
Check if disabling wptexturize() might help. See more info here: https://developer.wordpress.org/reference/functions/wptexturize/ You can disable it in your title, by adding this line to a functions.php file in your theme: remove_filter('the_title', 'wptexturize');