my favorite new WordPress trick

this little functions.php hack makes me all giddy…

use this to rebrand your WordPress back-end with your own logo:

//hook the administrative header output
add_action('admin_head', 'my_custom_logo');

function my_custom_logo() {
echo '

';
}

and here’s what it would look like in action:

by default, the WP logo is 32px square. so what do you do if your logo isn’t square? easy enough, just add a width: with an !important tag in the CSS and make it as wide as you like.

via WPBeginner via Smashing Magazine

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.