WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Favicon no show at login, does show in dashboard

[Resolved] Favicon no show at login, does show in dashboard

Viewing 5 replies - 1 through 5 (of 5 total)
  • Use login_head for add your favicon wp_login.php.

    add_action( ‘login_head’, ‘favicon4admin’ );

    So do I use two add actions:
    function favicon4admin() {
    echo ‘<link rel=”Shortcut Icon” type=”image/x-icon” href=”http://www.crhouseinc.com/wp-content/themes/crhouse/images/favicon.ico” />’;
    }
    add_action( ‘admin_head’, ‘favicon4admin’ );
    add_action( ‘login_head’, ‘favicon4admin’ );

    or just use login_head instead of admin_head?

    Is this because of the new WP? because it works on my older sites.

    admin_head was removed for the wp_login,
    I think you should be use the two for a better semantic, you can use another action as well, but try to keep separed the login of the admin is cleener

    Just to be clear could you paste the entire function you’re suggesting please?

    the easy way is this

    add_action( 'wp_print_scripts', 'favicon4admin' );

    A Happy New Year to you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Favicon no show at login, does show in dashboard’ is closed to new replies.