Support » Fixing WordPress » Text Widget missing code

  • Resolved thoughtwell

    (@thoughtwell)


    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 6 years, 9 months ago by thoughtwell. Reason: inserted tag skewed post
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    See if the issue mentioned in this ticket resembles yours:
    https://core.trac.wordpress.org/ticket/40951

    Thread Starter thoughtwell

    (@thoughtwell)

    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

    (@t-p)

    You are welcome:)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Text Widget missing code’ is closed to new replies.