» Smart Phones, Web Design, Google or whatever
WordPress, Turning off Fancy Quotes
NOTE: You will be editing your blog files directly, so if you are not comfortable with this, you may want to search for a plugin instead. If you move forward REMEMBER to backup the file before you edit it.
How do you get your blog to stop replacing your regular quotes (the HTML entity ") with fancy/curly quotes? Here’s what worked for me, with links below to 2 other posts where I started me out.
First, according to Otto42 in the WordPress community when you are writing posts the fancy/curly quotes are applied through a filter called “the_content”. So go to wp-includes/default-filters.php and make a backup before editing it! If you upload an older version of this file you may end up with a 500 Internal Server Error and have to call GoDaddy to fix it while your wife looks at you like you are from another planet.
Below is the code you want to change and what to replace it with…
REPLACE
add_filter(‘the_content’, ‘wptexturize’);WITH THIS
remove_filter(‘the_content’, ‘wptexturize’);
Upload your edited wp-includes/default-filters.php and you should not have any more fancy/curly quotes. There are plugins to do this, but I like to minimize using them and I am comfortable making edits like this.
While I was editing I decided it would be pretty useful if people adding code in comments could do the same so here’s another change to make that happen:
REPLACE
add_filter(‘comment_text’, ‘wptexturize’);WITH THIS
remove_filter(‘comment_text’, ‘wptexturize’);
MORE
Wordpress – What does wptexturize do?
RESOURCES
Blogmum – Turn off curly quotes in WordPress
Wordpress – Turn off smart quotes
| Print article | This entry was posted by George on October 22, 2009 at 9:09 pm, and is filed under Technology. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
ABOUT COMMENTING ON THIS BLOG
Comments are moderated by a human and will be approved if they bring value to the discussion. This means comments are on topic, relevant and useful. Here are some ways to insure your comment is rejected, marked as spam or will be edited (at my discretion):
- Using keywords, business names or website names in the Name field
- Putting a spammy site/page in the Website field
- Foul, abusive or discriminatory language
- Comments for SEO only purposes

