Is it possible to disable smart quotes?
-
Hello, I am writing a very little piece of code on my blog post and Wordpres is messing it by changing straight quotes into smart quotes.
The blog post is this
Wordpress is specifically changing
CastSpellByName("Find Herbs")into
CastSpellByName(“Find Herbs”)notice the difference between
“” and “”Is it possible to disable this “feature”?
Is it possible to edit the “functions.php” file?
Because I found a blog post saying I can disable this feature by editing that file –
https://www.webnots.com/4-ways-to-disable-smart-or-curly-quotes-in-wordpress/I found the html code for quotes:
“ ”“ – ”
Do I have to replace quotes with such code?
The blog I need help with is: (visible only to logged in users)
-
Hello there,
Many thanks for reaching out.
It looks like you’re looking to display code on your site, to keep formatting as it should be for the language, I would recommend using a syntax highlighter block: https://wordpress.com/support/wordpress-editor/blocks/syntax-highlighter-code-block/
Editing the functions.php is only possible if the site is on the business plan, but with the above block, this wouldn’t be necessary.
I hope this helps.
-
Thanks, it works!
I wish I could set the font to a much smaller size, I set it to 6 and it’s still big, but anyways, it solves the quote problem, which was my issue.
Thanks again!
- The topic ‘Is it possible to disable smart quotes?’ is closed to new replies.