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.
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.
Kimi this is useful..Usually what I do is upload the favicon at the root of WordPress installation and that does everything.
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 😀
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.
@Pham-Pham, Yes, there are lots of favicon generator out there, and they are mostly free.
Thanks for the quick link.
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.
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:)
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
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!
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!
Many compliments!
This one only worked for me, also thanks to the video.
Thanks and keep good work,
Greets,
2-Xite