Wordpress Technology

Wordpress Tips, Tutorials, Hacks

How to Add a Favicon to WordPress Blog

Find the famous functions.php file of the current theme and insert next code in it.

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

You are done. Sweet and simple. Don’t forget to change the favicon url.
If the wp_head() function is not implemented the code will not work.

Have fun!

Wordpress! Have fun!

Wordpress! Have fun!

Both comments and pings are currently closed.

© 2009 | Made by Vancouver Web Design | Internet Marketing