Welcome! To use this support forum, please Login or Join Today!

   

Favicon

{name}
Rank

Total Posts: 17

Joined 2014-05-01

PM

 

Please tell me how to add a favicon in Skeleton.

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

What version of Skeleton?

{name}
Rank

Total Posts: 17

Joined 2014-05-01

PM

 

2.1.0

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

Typically, you just need to upload your favicon to the active theme directory and the site root as well:
http://codex.wordpress.org/Creating_a_Favicon

If you don’t want to modify header.php or risk losing those changes on update, you could add it to your child theme’s functions.php:

/*  Custom favicon
/* ------------------------------------ */
function skeleton_favicon() {
    echo '<link rel="shortcut icon" href="'.get_template_directory_uri().'/favicon.png" />'."\n";
}
add_filter( 'wp_head', 'skeleton_favicon' );

{name}
Rank

Total Posts: 17

Joined 2014-05-01

PM

 

Yes! It’s working now. Thanks for your help !