• 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 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    There is no way to filter this at all any more. Your only recourse is to define and register your own version of the widget. Then remove the default and add your own.

    You could remove the text with jQuery, but the text is still sent to the browser initially. Not any different than hiding with CSS really.

    If you want to get totally crazy, you can do this and still leverage the original widget callback. Don’t say I didn’t warn you though: https://gist.github.com/nickohrn/9578743

    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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove "At a Glance" Theme Name’ is closed to new replies.