Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1099535

    The theme already has a favicon. I would like to know which function to use in the child theme to customize a specific favicon.ico exclusive to the administrator (if connected)? Thank you

    #1099813

    Hey dnetwork,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

    #1101427

    This code works but does not overwrite the favicon.ico of the theme

    function add_login_favicon() {
    $favicon_url = ‘http://kriesi.at/wp-content/themes/kriesi/images/logo.png’;
    echo ‘<link rel=”shortcut icon” href=”‘ . $favicon_url . ‘” />’;
    }
    add_action(‘login_head’, ‘add_login_favicon’);
    add_action(‘admin_head’, ‘add_login_favicon’);

    #1101512

    Hi dnetwork,

    Try using this code:

    add_filter('avf_favicon_final_output','avia_favicon_link');
    
    function avia_favicon_link($icon_link) {
      if ( current_user_can( 'manage_options' ) ) {
        $icon_link = '<link rel="icon" href="http://kriesi.at/wp-content/themes/kriesi/images/logo.png">';
        return $icon_link;
      }
    }

    Best regards,
    Nikko

    #1101793

    Perfect!
    Nikko, Thanks

    #1101832

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Create a specific favicon.ico for admin’ is closed to new replies.