wordpress snippets last updated   : April 22, 2014
we now have 631 snippets

Insert favicon with function

wordpress snippet

Adding this PHP code to your functions.php of your wordpress theme will insert the HTML for your favicon.

snippet :  PHPcopy
function myfavicon() {
	echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('wpurl').'/favicon.ico" />';
add_action('wp_head', 'myfavicon');

jqsnipp.com | we just launched jquery snippets website