Themes / Design

Plugins / Hacks

Security

SEO

Tutorials

Home » Plugins / Hacks

How to get rid of curly quotes

Submitted on June 7, 2009 – 11:32hr403 views | No Comments Yet...
How to get rid of curly quotes

Posted by Jean-Baptiste Jung over at WP Recipes and Cats Who Code, comes this fantastic hack on "How to get rid of curly quotes".

When displaying code in your Posts or Pages the lovely curly quotes can be(come) a big pain. Jean however comes with an ultra-simple solution.

Open your functions.php file (if you don't have one create one) and add the following 1 line of code:

< ?php remove_filter('the_content', 'wptexturize'); ?>

That's it! Upload the file to your theme directory and from now on displaying code on your WordPress website or blog no longer is a headache!

If you're not comfortable changing your theme files, then an alternative can be to head over to HTMLizer 1.0. This is an online tool for converting text with special characters into HTML readable text.

Popularity: 36% [?]

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.