Title: disappearing code?
Last modified: January 24, 2019

---

# disappearing code?

 *  [coachmarino](https://wordpress.org/support/users/coachmarino/)
 * (@coachmarino)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/disappearing-code-6/)
 * I’m no code expert, but I know enough to get around and make changes, copy/paste,
   ask questions. And I know how to manipulate code on the text editor on a standard
   WP page.
 * But I’m having an issue where if anyone logs into our page, and makes an edit
   on the visual editor, and then updates the page, the code vanishes!
 * It’s just a simple javascript pop up script.
 * I know enough now that we’ve been having the issue not to use the visual editor,
   and always use the code editor on this page, but the other users just want to
   change words or pictures…and when they do, the code disappears.
 * Any experience with this?
    -  This topic was modified 7 years, 3 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: moved from developing to fixing
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdisappearing-code-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/disappearing-code-6/#post-11127380)
 * This is how the Classic Editor has always been, and can also be influenced by
   whether the user has the `unfiltered_html` capability or not.
    I’m not sure if
   the new editor has the same problem.
 *  Thread Starter [coachmarino](https://wordpress.org/support/users/coachmarino/)
 * (@coachmarino)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/disappearing-code-6/#post-11127390)
 * So what is a good solution for this? Would we be better off with a pop up wordpress
   plugin?
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/disappearing-code-6/#post-11127976)
 * It sounds like you need something to load the script just on that page, that 
   is outside of the page content. Whether that is a function in a child theme, 
   or a plugin that loads javascript on certain pages or a plugin that does the 
   popup for you, I don’t know.

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

The topic ‘disappearing code?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/disappearing-code-6/#post-11127976)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
