How to add the favicon to your WordPress blog

Sponsors

We all know what is favicon logo. In wordpress theme you can easily add the favicon logo using following code.

you just need to open your functions.php file and put following code in that file.

function childtheme_favicon() { ?>
<link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.png" >
<?php }
add_action('wp_head', 'childtheme_favicon');

Note: your favicon.ico file need to placed under theme->images folder. then only this code will work

Incoming search terms:

You may like following Articles!

8 thoughts on “How to add the favicon to your WordPress blog

  1. Pingback: Tweets that mention How to add the favicon to your WordPress blog | Wordpress API -- Topsy.com

  2. I keep listening to the news update lecture about receiving boundless online grant applications so I have been looking around for the best site to get one. Could you advise me please, where could i get some?

  3. Merely want to say your article is impressive. The clarity in your post is simply impressive and i can consider you are an expert on this subject. Well with your permission allow me to grab your rss feed to keep up to date with future post. Thanks a million and please keep up the good work.

  4. I carry on listening to the news speak about receiving free online grant applications so I have been looking around for the finest site to get one. Could you tell me please, where could i acquire some?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>