website design

Curly quotes look nice in some instances, but they can break search requests and are an unnecessary ornament in code. At best they tell you whether you are at the beginning or end of a quote so while they are nice for reading they do not do much for search engines and software code that easily keeps track of these without relying on curliness.  I like to keep these simple and turn off curly quotes where possible.

To change WordPress to using straight quotes " from using curly quotes “ or ” you will need to remove the texturizing functions in your theme. Add the following to your functions.php file:

remove_filter ('single_post_title', 'wptexturize');
remove_filter ('bloginfo', 'wptexturize');
remove_filter ('wp_title', 'wptexturize');
remove_filter ('category_description', 'wptexturize');
remove_filter ('list_cats', 'wptexturize');
remove_filter ('comment_author', 'wptexturize');
remove_filter ('comment_text', 'wptexturize');
remove_filter ('the_title', 'wptexturize');
remove_filter ('the_content', 'wptexturize');
remove_filter ('the_excerpt', 'wptexturize');

You may need to turn off curly quotes on your computer also. For MACs go to System Preferences>Keyboard>Text and uncheck Use smart quotes and dashes.

 

Leave a Reply

website creation

Screen Shot 2016-01-17 at 6.55.02 AM, Jan 17, 2016

We create and manage websites for small businesses and non-profits.

flash presentations

Inquire about a Flash presentation or application for your site.