Posted By

alp on 06/06/11


Tagged

wordpress favicon functionsphp


Versions (?)

Wordpress: Add a Favicon


 / Published in: PHP
 

  1. /**
  2.  * Add a Favicon
  3.  **/
  4. function myfunction_blog_favicon() {
  5. echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('wpurl').'/favicon.ico" />';
  6. }
  7. add_action('wp_head', 'myfunction_blog_favicon');

Report this snippet  

You need to login to post a comment.