Add custom favicon to your Wordpress blog


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



Copy this code and paste it in your HTML
  1. // add a favicon to your
  2. function blog_favicon() {
  3. echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('wpurl').'/favicon.ico" />';
  4. }
  5. add_action('wp_head', 'blog_favicon');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.