Home / admin / Display a different favicon for wp-admin
  • How to 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.

    ( click code to copy )

    wordpress snippet : PHP

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

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

    bloginfo, admin_head, add_action, get_bloginfo, wp,
  • 3Dhendo

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