Title: Keep single quotes in WP code when using Visual editor
Last modified: August 30, 2016

---

# Keep single quotes in WP code when using Visual editor

 *  [rogeratbing](https://wordpress.org/support/users/rogeratbing/)
 * (@rogeratbing)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/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='http://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.

## Tags

 * [double-quote](https://wordpress.org/support/topic-tag/double-quote/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [single-quote](https://wordpress.org/support/topic-tag/single-quote/)
 * [visual editor](https://wordpress.org/support/topic-tag/visual-editor/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [rogeratbing](https://wordpress.org/support/users/rogeratbing/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/keep-single-quotes-in-wp-code-when-using-visual-editor/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
