Title: WordPress removes coding
Last modified: August 22, 2016

---

# WordPress removes coding

 *  [Wonderful Wanderings](https://wordpress.org/support/users/wonderful-wanderings/)
 * (@wonderful-wanderings)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wordpress-removes-coding/)
 * Hi,
 * On this page ([http://wonderfulwanderings.com/belgium/#belgium-unesco](http://wonderfulwanderings.com/belgium/#belgium-unesco))
   I use ID’s to create jump links.
    The jump links work fine, the problem is that
   WordPress strips half of them whenever I update the page.
 * For instance, if I want to jump from the index to the heading 3.1. UNESCO sites,
   my coding is this:
 * <span id=”belgium-unesco”></span>
      <h3>3.1. UNESCO sites</h3>
 * I do it like this and not with <h3 id=”belgium-unesco”> because I want the jump
   to end before the heading so that you can still see the heading and I only achieve
   that by putting the id in a separate span tag and then adding the   to leave 
   some room.
 * However, whenever I update the page, WordPress strips half of the <span id:”…”
   > and half of the &nbsp’s.
 * And this isn’t the first time I’ve had WordPress trip coding when updating pages.
   
   I know it can happen when you change from html view to regular view (which shouldn’t,
   but it does), but in this case it even happens when I stay in the html editor.
 * Anybody know how to prevent this?
 * Thanks

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

 *  Moderator [Bet Hannon](https://wordpress.org/support/users/bethannon1/)
 * (@bethannon1)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wordpress-removes-coding/#post-5849298)
 * Have you tried using div’s with ID’s instead of spans?
 *  Thread Starter [Wonderful Wanderings](https://wordpress.org/support/users/wonderful-wanderings/)
 * (@wonderful-wanderings)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wordpress-removes-coding/#post-5849314)
 * Not yet. I could try that.
    It’s strange because when they disappear, they don’t
   all disappear. For example, all those on the second half of the page might disappear.
 *  Moderator [Bet Hannon](https://wordpress.org/support/users/bethannon1/)
 * (@bethannon1)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wordpress-removes-coding/#post-5849316)
 * WordPress does do some automatic stripping. I’ve not seen the issue you describe
   with spans, but I tend to use divs, and haven’t really had issues.

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

The topic ‘WordPress removes coding’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [links](https://wordpress.org/support/topic-tag/links/)
 * [strip](https://wordpress.org/support/topic-tag/strip/)
 * [tag](https://wordpress.org/support/topic-tag/tag/)
 * [view](https://wordpress.org/support/topic-tag/view/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Bet Hannon](https://wordpress.org/support/users/bethannon1/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/wordpress-removes-coding/#post-5849316)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
