Posted By

scottnix on 10/06/11


Tagged

wordpress favicon head thematic


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dubogii


Wordpress adding a Favicon


 / Published in: PHP
 

URL: http://scottnix.com/code/wordpress/thematic-snippets/

Loads a favicon to WordPress, must be a .ico format 16x16

  1. // add favicon to site, add 16x16 "favicon.ico" image to main directory
  2. function snix_add_favicon() { ?>
  3. <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />
  4. <?php }
  5. add_action('wp_head', 'snix_add_favicon');

Report this snippet  

You need to login to post a comment.