Home / admin / Remove current theme from “Right Now” dashboard widget
  • How to Remove current theme from “Right Now” dashboard widget

    remove-current-theme-from-right-now-dashboard-widget

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

    ( click code to copy )

    wordpress snippet : PHP

    <>
    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;
      }
    }
    

    ( WordPress codex functions, hooks, in this snippet. )

    gettext, add_filter, _n, _e, _ex, wp,
  • Thanks for this tip. Now, I can hide unwanted theme info. from dashboard.

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

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

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

  • Leonardo

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

  • Captain Theme

    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.