Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've recently (latest update) been welcomed to my stats page with this annoying message:

enter image description here

Can anyone tell me how to remove that offensive red "did you know" message?

Edit:

Looks like adding:

.gotonewdash {display: none;}

to wp-admin/css/wp-admin.min.css did the trick of hiding it, but according To Tom J Nowell, this is a big no-no. Does anyone have recommendation for doing this properly?

share|improve this question

1 Answer 1

The next level up would be an inline style in the head using a hook in a dedicated plugin or theme functions.php:

function add_admin_css(){
    ?><style>.gotonewdash {display: none;}</style><?php
}
add_action( 'admin_head','add_admin_css');

Next level up after that would be an admin.css in a plugin with is_admin() and wp_enqueue_style

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.