Support » Plugins » Remove "At a Glance" Theme Name

  • mdgross

    (@mdgross)


    I would like to remove the theme name from “At a Glance.” The code I was using (see below) stopped working after the WordPress 3.8 update. It appears that this text is no longer filtered by ngettext.

    add_filter('ngettext', remove_theme_from_dash');
    
    function remove_theme_from_dash($text)
    {
    	if(preg_match('/Theme.*with.*widgets/', $text))
    	{
    		return '';
    	}
    	return $text;
    }

    I would prefer to remove the text entirely as opposed to hiding it with CSS. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • divydovy

    (@divydovy)

    add_filter(‘ngettext’, remove_theme_from_dash’);

    You’re missing a ‘

    Not sure if that’s the underlying issue but a typo won’t help. Try:

    add_filter(‘ngettext’, ‘remove_theme_from_dash’);

    TW

    (@twhittaker)

    hey, the easiest way to get rid of it, is to go to wp-admin/includes/updates.php its in line 224

    $msg = sprintf( __( ‘WordPress %1$s running %2$s theme.’ ), get_bloginfo( ‘version’, ‘display’ ), $theme_name );

    Happy hacking!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove "At a Glance" Theme Name’ is closed to new replies.