X

Display a different favicon for wp-admin

Adding this snippet to the functions.php of your wordpress theme will let you display a different icon for the wp-admin. Don't forget to upload your favicon.ico to the wp-content directory. Just a little snippet from great people over at wpengineer.com.



Code Snippet:


function favicon4admin() {
echo '<link rel="Shortcut Icon" type="image/x-icon" href="' . get_bloginfo('wpurl') . '/wp-content/favicon.ico" />';
}
add_action( 'admin_head', 'favicon4admin' );

Comments  Leave a Reply

  1. what if it already does that? and you didn’t change anything? and there’s nothing like that in the functions?

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!