Wordpress Add favicon to blog


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

Can also be done in your pre built theme


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.