Ever wanted to create one of those admin messages you see at the top of of some WordPress dashboard pages?
Well its pretty simple. Just drop this into your functions.php file, or a custom plugin, and edit to fit your needs:
If you want to change the color of the border, you have 3 options: Yellow, Red, and Green
Yellow – use the ‘notice-warning’ class. (as shown above)
Red – use the ‘error’ class.
Green – use the ‘updated’ class.
If you don’t want to write any line of code, you can also take a look at this plugin from the WP.org repository : https://wordpress.org/plugins/kjm-admin-notices/