Skip to content

Disable Quotation Mark Modifications from WordPress

Remove automatic modification of quotation marks (e.g. " to opening and closing quotation marks) by entering the following 4 lines to the functions.php file of your theme.

remove_filter('the_content', 'wptexturize');
remove_filter('the_title', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
remove_filter('comment_text', 'wptexturize');

As the code says, it removes the wptexturize filter, which does other things as well, e.g. changes double dashes (--) to — characters, so unfortunately you'll lose those features too.