Title: Visual editor stripping &quot;span&quot; elements
Last modified: August 31, 2016

---

# Visual editor stripping "span" elements

 *  [Alex](https://wordpress.org/support/users/skud/)
 * (@skud)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/visual-editor-stripping-span-elements/)
 * Hi folks,
 * I have a shortcode that includes a form (for volunteer bookings) which has glyphicons
   for calendars included within a `<span>` element.
 * This is the code for the glyphicons:
 *     ```
       <span class="input-group-addon">
       <span class="glyphicon glyphicon-calendar">
       </span>
       </span>
       ```
   
 * Obviously I add this markup in the “Text” version of the shortcode editor. However
   when I switch to visual, and then back to text, the `<span>` is removed. Worse,
   since shortcoder always starts in “Visual” mode, this means that parts of my 
   form are lost every time I edit the shortcode.
 * This is causing big problems for our booking system, as customers can’t choose
   dates. I think it’s a newish problem, probably since the new version of Shortcoder.
   Anyone know what’s up?
 * [https://wordpress.org/plugins/shortcoder/](https://wordpress.org/plugins/shortcoder/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Alex](https://wordpress.org/support/users/skud/)
 * (@skud)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/visual-editor-stripping-span-elements/#post-6954760)
 * Anyone?
 *  [ramonjosegn](https://wordpress.org/support/users/ramonjosegn/)
 * (@ramonjosegn)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/visual-editor-stripping-span-elements/#post-6954771)
 * Hi, you can use Post Snippets its similar to Shortcoder but not working with 
   visual editor. Only code.
 * [https://wordpress.org/plugins/post-snippets/screenshots/](https://wordpress.org/plugins/post-snippets/screenshots/)
 *  Thread Starter [Alex](https://wordpress.org/support/users/skud/)
 * (@skud)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/visual-editor-stripping-span-elements/#post-6954772)
 * Not really interested in replacing the plugin, especially as I’ve spent considerable
   time setting up some quite complex shortcodes.
 * I’d love a reply from [@vaakash](https://wordpress.org/support/users/vaakash/)
   saying whether this bug might be fixed!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Visual editor stripping "span" elements’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/skud/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/visual-editor-stripping-span-elements/#post-6954772)
 * Status: not resolved