
Some time ago, I shown you how to get rid of curly quotes on your WordPress blog and avoid broken codes. This time, let’s see how to apply the same method to remove curly quotes on your comments.

Some time ago, I shown you how to get rid of curly quotes on your WordPress blog and avoid broken codes. This time, let’s see how to apply the same method to remove curly quotes on your comments.
To achieve this recipe, simply paste the following line of code on the functions.php file from your theme.
remove_filter('comment_text', 'wptexturize');
That's easy as that! Say goodbye to broken codes!
3 Responses
That is very useful!
How about removing or changing a quote that doesn’t belong. For instance I did a WP DB backup and during the reinstall some single quote’s ie. ( ‘ ) changed into a solid black dot with and apostrophized A??
Hah! It’s that simple!
Trackbacks: