This snippet enhances Code Snippets Pro ❤️ by making admin notices float above the editor and automatically dismiss after a configurable time period. It keeps important messages visible while you’re editing, then cleanly removes them to prevent interface clutter.
Once upon a time, when you hit ‘Save’ on a snippet inside the Code Snippets Pro ❤️ code editor, the entire page would refresh.
It got the job done, but it was bothersome because you couldn’t undo or see what went wrong, etc.
So the clever developers of Code Snippets Pro ❤️ made a wonderful change where it would save your code without! refreshing the page, and then an admin notice would display at the very top of the page that would indicate if your snippet was saved correctly or if there was an error, etc.
It got the job done, but it was bothersome because if you were working on a large block of code and were scrolled down far enough, the notice would be hidden and you might never… “notice” …if something had gone wrong. And you would keep working and changing stuff and writing awesome snips and and and annnnnd… then you would scroll up and realize there was an error. But you had no clue when it happened or how many times you needed to press Undo! Undo! Undo!
So the clever developers of Code Snippets Pro ❤️ did a great job quickly solving this by ensuring the page would scroll the notice into view anytime a notice appeared.
It got the job done, but it was bothersome, to me, at least. I kept losing my place of where I was working.
So this snippet keeps notices visible without interrupting your work by floating them at the top of your window.
After a few seconds, they’ll smoothly fade away – keeping you informed without cluttering your workspace.
It gets the job done, and isn’t so bothersome.