Okay, here’s a snippet that changes your game. It allows the admin notice in Code Snippets Pro ❤️ to float above the editor. This simple enhancement improves the user experience by keeping important messages visible while preventing your page from scrolling while you’re editing your snips! Allow me to explain a little further…
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 clever massive fan of Code Snippets Pro ❤️ made a slight modification to the CSS of the admin notice so that now it floats above the editor at the top of your window so you don’t miss a notice and your page doesn’t scroll!
Win-win! Enjoy it now before the bake it in one day!
Leave a Reply