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
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
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’);
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
Perfect!
Nikko, Thanks
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon