Title: Text Widget missing code
Last modified: June 21, 2017

---

# Text Widget missing code

 *  Resolved [thoughtwell](https://wordpress.org/support/users/thoughtwell/)
 * (@thoughtwell)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/text-widget-missing-code/)
 * Recently, WordPress seems to have introduced visual and code editor views as 
   well as the TinyMCE into the text widget editor. This has caused certain HTML
   elements and their attributes to disappear when I go to edit said text widget
   area. Code still works on the front end, but in the code view in the widget editor,
   I’m missing my link element tags and attributes along with parts of the code 
   originally inserted.
 * I’m afraid to make any changes lest I lose everything! Is there an option to 
   turn this off, now?
    -  This topic was modified 8 years, 12 months ago by [thoughtwell](https://wordpress.org/support/users/thoughtwell/).
      Reason: inserted tag skewed post

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/text-widget-missing-code/#post-9250029)
 * See if the issue mentioned in this ticket resembles yours:
    [https://core.trac.wordpress.org/ticket/40951](https://core.trac.wordpress.org/ticket/40951)
 *  Thread Starter [thoughtwell](https://wordpress.org/support/users/thoughtwell/)
 * (@thoughtwell)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/text-widget-missing-code/#post-9250049)
 * Yes, that’s it. Hmmm. I did try doing due-diligence and searching topics but 
   nothing came up in the forum. Shortly thereafter, I found several blog posts 
   from other devs discussing this issue.
 * No worries. I ended up just eliminating the widget area altogether by unhooking
   it in my theme and hard coding this into the functions file, then re-hooking 
   back into the header. Probably for the best anyhow, as I don’t want a client 
   fidgeting w/ this. Were this a theme for the theme market, it would probably 
   be a bigger problem, but since it’s a custom theme for a client, I believe having
   it hard coded is going to be a better solution anyhow.
 * I’ll mark this as resolved, at least for my particular needs. Thanks!
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/text-widget-missing-code/#post-9250174)
 * You are welcome:)

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

The topic ‘Text Widget missing code’ is closed to new replies.

## Tags

 * [text widget](https://wordpress.org/support/topic-tag/text-widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/text-widget-missing-code/#post-9250174)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
