Here’s your WordPress hack of the day: Removing curly quotes in WordPress.
Curly quotes are nice, they are beautiful looking, but they suck for usability for your readers, especially if they are trying to copy and paste content and/or code from your blog.
So, I kill them. Kill them all, both in the content and the comments. This ensures the “safest” viewing experience for your readers.
It’s super easy. Just copy and paste the following into your “Theme Functions” php file:
<?php remove_filter(‘the_content’, ‘wptexturize’); ?>
<?php remove_filter(‘comment_text’, ‘wptexturize’); ?>
That’s it!
Here’s to making the blogging experience the very best. Oh, and you have to start with WordPress.
đŸ˜‰
Jim says
always appreciate the hacks
Daniel_Berman says
here, here, oh wordpress master!
Phillip Gibb says
shot
I will be experimenting with that
Aaron Fenwick says
Umm… maybe it was just a coincidence, but I tried this and now… none of the pages on my site will load. Not even WP-Admin. What did I do wrong? I need help! Haha. Oh geez.
John Saddington says
better remove it.
Aaron Fenwick says
Alright. How would I get to it if I can’t access WP Admin? Sorry… I’m not much of an expert. Haha.
Aaron Fenwick says
Alright. How would I do that since I can’t access WP Admin? Sorry… I’m not much of an expert. Haha.
John Saddington says
FTP?
Aaron Fenwick says
Thanks! I’ll let you know if I get it fixed…
Aaron Fenwick says
Just got it fixed. Thanks!
Josh Merriam says
Thanks John. That’s super-easy!
What about with Coda? Do you know of any Coda plugins to do this besides using the tried and true find and replace method?