How to turn off Windows Smart Quotes / Quotation Marks

Ok, I post lots of UNIX / Linux based code snippets and I don’t want Windows displaying “smart quotes”.  When I put a quote in a blog post, I want it displayed exactly as I posted it.
Here’s how to turn Windows smart quotes off in WordPress using cPanel:

Using File Manager in cPanel – navigate to the file wp-includes/default-filters.php
Back it up and then edit it and comment out every occurrence of the string “add_filter(‘the_excerpt’, ‘wptexturize’);”  by prefixing with a //.
//add_filter(‘the_excerpt’, ‘wptexturize’);

In my case that was eleven entries – and I commented all those devils out… this fixes all past posts and new posts.  You would think there would be an easier way…

Scroll to Top