Changing favicon
-
I am trying to change the favicon, and am having trouble. I have generated the favicon, and have ftped it to my child image folder. I have also tried copying it into the root directory, and the twentyten image folder also. I have added this code to my child functions.php theme:
/* add a favicon */
function blog_favicon() {
echo ‘<link rel=”Shortcut Icon” type=”image/x-icon” href=”‘.get_bloginfo(‘stylesheet_directory’).’/images/favicon.ico” />’ . “\n”;
}
add_action(‘wp_head’, ‘blog_favicon’);
I am confused as to which image directory this is- is it my child theme image directory? Also, do I need to create a child theme header.php and put something in there too (if so, what?)
Thanks so much- I’m new to this!
- The topic ‘Changing favicon’ is closed to new replies.