By default, Wordpress will convert your straight quotation marks into curvy quotation marks (Smart Quotes or left/right quotes). This function makes the quote marks much prettier than straight quotes, but they have a fundamental problem. When someone tries to cite your blog post or if you are posting a code snippet, the curvy quotes will cause errors and not display correctly as they are pasted into the new system, social media site or CMS/blog.
Unfortunately, we recently faced this problem, as users of this website (Webintel) could not replicate the code snippets that we were sharing. (Sorry about that!) So once we realized this, we had to find a fix...and quick!
We discovered this solution from Noob Cube's Jarod Taylor (www.noobcube.com/.../).
To remove the curvy (smart quotes) from your Wordpress post content, paste the following PHP snippet at the end of your functions.php page in your theme folder. Please note: we tested this on a few themes and noticed that this can cause errors with certain functions.php files that have been modified. Simply make a backup of your original file prior to trying this out.
Please the code at the end of your functions.php page:
<?php
remove_filter('the_content', 'wptexturize');
?>
You can also remove the curvy quotations from titles by adding this code:
<?php
remove_filter('the_title', 'wptexturize');
?>
by Jonathan Franchell, CEO of Ironpaper - For more tips and hacks: Need to remove a new line after h1 tags? Both web designers and SEO practitioners need to employ headline tags: H1, H2, H3 in several ways to improve web page structure and tag...
The Crowded Arena of the IT Marketplace Updated December 2024 The Information Technology (IT) landscape is experiencing rapid growth and intensifying competition. IT spending is projected to reach nearly 5.1 trillion U.S. dollars in 2024, a...
Updated December, 2024 The field of digital marketing is evolving rapidly in response to new technology and changing buyer expectations. To help career-minded marketers, we’ve rounded up the top 10 skills needed to succeed in the field. These are...