Add Or Change Favicon WordPress

How to add a favicon wordpress without plugins or how to change favicon.ico in wordpress if you already have one built in your theme.

Have you ever wondered how to have a small icon or small image in your browser if you open a wordpress blog? That’s called favicon wordpress, it’s like a branding of your site.

Most websites nowadays have this favicon, either html static websites and even wordpress blogs.

In the video we will create a favicon wordpress with GIMP (free source image editing program), upload it and then adding php code to a static html code in our header.php.

If you just want to change your favicon, you don’t need to follow this step, just look where the old favicon, and replace it with the new one.

As usual, backing up a theme is a really nice idea.

favicon wordpress
This blog's favicon.

These are the steps to create favicon wordpress.

skip to the video if you’ve already one.

1. Create a new file in GIMP, size= 16×16 px (pixel)

2. Save the file as favicon.ico

3. Upload the file to /images folder or /img depends on where you have your images are stored in your theme file (wp-content/themes/yourthemes)

4. Add favicon html static code to header.php:

<link REL="SHORTCUT ICON" HREF="http://www.yoursite.com/images/favicon.ico"/>

And then replace this code with wordpress codex, here is the php code:

<link rel="shortcut icon" href="<?php bloginfo('template_directory');?>/images/favicon.ico" />

Video Tutorial:


Note:

1.If you save favicon.ico, favicon wordpress in different folder, then replace “images” folder with your folder name.

2. If you just change your favicon, then don’t add anything in your header.php file. Just overwrite the old favicon.ico to the new one, it should work fine.

Favicon wordpress is not showing?

So, that’s it. If you are using firefox, the favicon may not appear immediately, clean up your cache and it will show up sooner or later. I notice other browsers display it faster, so you might want to check it in other browser too, in case you can’t wait

3. Want to have flexible theme which enable you upload favicon wordpress from your dashboard? check out Thesis features.

Share the knowledge
Share on Google+0Tweet about this on TwitterShare on Facebook0Pin on Pinterest0Share on Reddit0Email this to someonePrint this page

Comments

    • says

      Hey Harsh :)
      I agree with you, that can be done that way, but it will only work if your theme file already have the code. I notice some themes came with already built-in favicon, however still many people don’t have favicon in their sites :D

  1. says

    Great tutorial, as always ! By the way, I found a free website that converts any image format to icon format : http://iconverticons.com/ So if you are working in Adobe Illustrator or Photoshop, you can save your document as 16×16 .PNG and then use the mentioned website to convert to .ICO.

    • says

      @Pham-Pham, Yes, there are lots of favicon generator out there, and they are mostly free.

      Thanks for the quick link.

  2. Louis Marshall says

    Favicons are essential in a modern blog design because this could be the key fac tors in making your blog/sites standout from the crowd.This is much pretty good idea.

    • says

      I agree with you, however we should compress favicon before we upload it.

      When i measure my loading speed with Yslow, the most of the time it needs a while to detect my old favicon, that’s why i changed mine to have a smaller size.

      Thanks for commenting Louis:)

  3. says

    I used this video to help me out with the icon part, but it was long! It is good education though I am thankful for her to make this video because now I know about Notepad++ instead of just using regular notepad like I was doing. hehe

  4. bhengstr says

    thanks for this!
    i’m using a child theme, for twentyten, the video made all the difference!
    my head ached as i read instructions but the video worked wonders!
    KUDOS!
    keep up the good work!

  5. says

    Favicon works on all my pages and I i suggest you should get a favicon into your site too. I’m enjoying most of my time with my blogs because of favicon.Thanks!

  6. 2-Xite says

    Many compliments!
    This one only worked for me, also thanks to the video.

    Thanks and keep good work,
    Greets,

    2-Xite