Please help me, I Have uploaded the favicon in the theme folder of my cPanel. Also, edited the header file even then the Favicon is not coming. Please check and tell me if everything is right or not -- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /><!-- leave this for stats --> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> <link href='/favicon.ico' rel='shortcut icon'/> </head> <body> <div id="wrapper"> <div id="header"> <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> <p><?php bloginfo('description'); ?></p> </div> <!-- end header --> <hr /> PHP: My blog is - www.BollyFM.info and its hosted on Hostgator. - Digital -
Hey, You need to upload favicon.ico to root folder (public html) not under theme file. BTW you have added code for that correctly so just move image of favicon.ico from theme folder to root folder. Moreover that it takes some time to appear (not immediately) so you need to wait for few hours for that after adding. DON.
Well, is done.. Actually i earlier uploaded into the theme folder. But now I uploaded it in the root folder and its working fine. - Digital -
You can put it in the theme directory if you have the right path. Many themes use this code: href="<?php bloginfo('template_url'); ?>/favicon.ico"