Answered
1
0

How to disable transformations of quotes to smart quotes, apostrophes, dashes, ellipses, the trademark symbol, and the multiplication symbol in Wordpress text fields and titles?

  • You must to post comments
Best Answer
2
0

Wptexturize function is responsible for auto transformation and auto text formatting in Wordpress.

If you want to turn it off globally add below line into functions.php file:

// Disable wptexturize
add_filter( 'run_wptexturize', '__return_false' );

If you want to turn it off only in some fields add one of below line into functions.php file:

// Disable wptexturize
remove_filter('the_title', 'wptexturize');
remove_filter('comment_text', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
remove_filter('the_content', 'wptexturize');

You can always use plugin My Custom Functions which helps you to add custom code to functions.php file.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.