Last Updated on 2021-10-18 by Clay
After I changed my WordPress theme to Neve, all the single and double quote mark (‘”) in my website were converted to the smart quote mark (‘ “).
This is very terrible for my articles. Because many of articles share code, these codes can work in the smart quote mark.
So I searched the Internet for some exclusion steps, and successfully let theme Neve no longer automatically convert the quotation from normal quote mark to smart quote mark.
In below I will simply record the steps.
Prohibit quote mark conversion
The steps to be performed are actually very easy:
- Go to the WordPress backend
- Edit public_html/wp-content/themes/”THEMES_YOU_USED”/functions.php file
- Insert
remove_filter('the_title', 'wptexturize');
andremove_filter('the_content', 'wptexturize');
two line
Step 1: Go to the WordPress backend
Since everyone’s hosts may be hosted by different hosting providers, you need to find a way to go to your own backend.
Step 2: Edit functions.php file
The path of functions.php is shown in the figure below: public_html/wp-content/themes/”THEMES_YOU_USED”/
Don’t hesitate to open it. The risk of modifying this document is minimal, just disable conversion.
Step 3: Insert code
Add the following code to functions.php file bottom:
remove_filter('the_title', 'wptexturize');
remove_filter('the_content', 'wptexturize');
One is for the title and the other is for the content.
Save the file, and confirm whether it is effective for your own website. For me, this method worked smoothly.