“-” is changed to “&#8211” in wordpress pages

2019-04-11 0 Comments Views

Recently, many users have given me feedback that when using our WordPress theme, the separator in SEO settings is customized to a special character bar in English - "after that, it will be converted to an HTML character &#8211.

The reason is that all of this is too thoughtful a pot for WordPress, which by default calls the function wptexturize to perform the transformation.

Call the remove_filter function to remove WordPress's call to wptexturize.

Add the following code to your function.php of your theme.

remove_filter('the_title', 'wptexturize');

Related Posts

Maoge

My Wechat: dongyangyemao Email: dongyangyemao#qq.com

Article Comments(0)