X

Remove current theme from “Right Now” dashboard widget

Customizr Review

Adding this snippet to the functions.php of your wordpress theme will remove current theme from "Right Now" dashboard widget.



Code Snippet:


add_filter( 'ngettext', 'wps_remove_theme_name' );
if(!function_exists('wps_remove_theme_name')) {
function wps_remove_theme_name($translated) {
$translated = str_ireplace('Theme <span class="b">%1$s</span> with', '', $translated );
return $translated;
}
}

Comments  Leave a Reply

  1. Captain Theme May 28, 2014 at 1:59 am

    Seeing it’s now the ‘At A Glance’ widget, I just found doing a simple CSS addition the WP-Admin Styles targetting:
    wp-version-message { display: none; }
    Works well.

  2. Hi, how can I also remove the “x widgets” parts too?

  3. I’ve tried to add it to my functions.php theme but it’s not working, it’s still displaying theme infos.

    1. Hi Omar, do you get any sort of error or does this just not work ?

  4. Thanks for this tip. Now, I can hide unwanted theme info. from dashboard.

    1. Well you can always hide anything from dashboard by adding css that will hide info, however what is it you are looking at removing ?

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!