If your WordPress blog contains code snippets, WordPress will make the quotes in the codes look fancy. The quotes will become something like **‘ **and ’. If you can’t see it well, here it is :
**‘ **’
When a reader of your blog copies your code, the special characters (quotes) will be copied with the code instead of the real code quotes. When this happens the code won’t work. This happened to me yesterday. I immediately tried to find a solution and I found the perfect solution. I’m going to share that perfect solution. There is a plugin named Unfancy Quotes on WordPress, but it didn’t do the job. Here’s what I did to remove Fancy Quotes.
Go to your Theme Editor which is available @ **Appearance **-> Editor.
On the right side which contains the name of the files of your theme, choose Theme Functions (functions.php).
Add the following code to the functions.php file :
remove_filter(‘the_content’, ‘wptexturize’);
remove_filter(‘comment_text’, ‘wptexturize’);
remove_filter (‘single_post_title’, ‘wptexturize’);
remove_filter (‘the_title’, ‘wptexturize’);
remove_filter (‘wp_title’, ‘wptexturize’);
And save the file by clicking Update File below the Editor textarea. Now, when you go to your blog posts you won’t see any Fancy Quotes.