Return to Snippet

Revision: 67349
at September 13, 2014 09:55 by chrisaiv

Initial Code
* Add a Favicon
* This prevents you from having to worry about updating your theme and losing your favicon.
function add_favicon(){
  echo "<link rel='shortcut icon' href='" . get_stylesheet_directory_uri() . "/favicon.ico' />" . "n";
add_action( 'wp_head', 'add_favicon');

Initial URL

Initial Description
Insert a favicon using functions.php

Initial Title
Wordpress: Insert a favicon.ico

Initial Tags

Initial Language