Thursday, August 12, 2010

Add Favicon on WordPress Blog

There are several ways to add favicon on WordPress blog

1.code on the header


<link rel="shortcut icon" href="/favicon.ico" />
<link rel="icon" type="image/png" href="/favicon.ico">


2. using WordPress Hook


function add_theme_favicon() { ?>
<link rel="shortcut icon" href="/images/favicon.ico" >
<?php }
add_action('wp_head', 'add_theme_favicon');

No comments:

Post a Comment