I want to hide wordpress “please notify the site administrator” message from Dashboard.
The message is:
WordPress 3.5.1 is available! Please notify the site administrator.
HTML Code:
<div class="update-nag"><a href="http://codex.wordpress.org/Version_3.5.1">WordPress 3.5.1</a> is available! Please notify the site administrator.</div>
So, i have added a css like this to hide the message but the this is not working!
Here is the css:
.update-nag{
display: none;}
Any idea?
you can sue this module found from Prijm enable the module, will do the job:
Hide Update Reminder Message
Place the below code in your theme functions.php file.
Just put this simple code in your functions.php and the update message will be hidden.
Try:
add_action(‘admin_menu’,’wphidenag’);
2
function wphidenag() {
3
remove_action( ‘admin_notices’, ‘update_nag’, 3 );
4
}
Try this
Just put this simple code in your functions.php and the update message will be hidden.
As the admin, I wanted to see the message, but I wanted it hidden for other users. I did this:
WordPress Dashboard (admin world) items cannot be updated using CSS in the Customizer. That only affects front-end CSS. You must use functions, or a plugin/functions combination.
See this article for a solution that doesn’t involve hacking functions in WP:
https://chriseller.com/how-to-remove-items-from-the-wordpress-admin-top-bar/