Want to Write for Us?Read This | LoginBecome a Member

Removing Curly Quotes in WordPress

picture-118Here’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.
;)

12 Responses to “Removing Curly Quotes in WordPress”

  1. Jim
    March 31, 2009 at #

    always appreciate the hacks

  2. March 31, 2009 at #

    here, here, oh wordpress master!

  3. March 31, 2009 at #

    shot
    I will be experimenting with that

  4. Aaron Fenwick
    December 5, 2010 at #

    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.

    • December 5, 2010 at #

      better remove it.

      • Aaron Fenwick
        December 5, 2010 at #

        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
        December 5, 2010 at #

        Alright. How would I do that since I can’t access WP Admin? Sorry… I’m not much of an expert. Haha.

        • December 5, 2010 at #

          FTP?

          • Aaron Fenwick
            December 5, 2010 at #

            Thanks! I’ll let you know if I get it fixed…

          • Aaron Fenwick
            December 5, 2010 at #

            Just got it fixed. Thanks!

  5. January 13, 2011 at #

    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?

Trackbacks/Pingbacks:

  1. Interesting Church Tech Links for April 19, 2009 « Web Ministry Thoughts - April 19, 2009

    [...] Removing Curly Quotes in WordPress [...]

Leave a Reply

Gravatar Image