Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to change the Favicon


nicolagreco
Participant

@nicolagreco

<?php

function my_favicon() {
?>

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

<?php
}
add_action( 'wp_head', 'my_favicon' );

?>

put it in a file my_hacks.php and put the file in mu-plugins/

put your favicon, in the root directory

Remember:

<?php bloginfo('template_url'); ?> won’t work fine because the template url changes when you’re in pages that use the member theme

Skip to toolbar