Keep single quotes in WP code when using Visual editor
-
I know there are MANY threads about preventing WP from using smart quotes in Posts and Pages, but I want to prevent WP from changing my single-quotes in code to double-quotes when using the Visual WP editor.
The theme I am using has a TAB shortcode, but it breaks if there are links with double quotes in the TAB section. So I have had to use single-quotes for links (
<a href='https://somesite.com'>
or for images<img src='source' width='100' height='100'>
etc ).There must be a function that can be used in the site’s wp-function.php file to stop the Visual editor from converting the singles to doubles?
As it is, I am certain if the client makes an edit the pages with TABS will break.
- The topic ‘Keep single quotes in WP code when using Visual editor’ is closed to new replies.