Wordpress: Add a Favicon


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.