favicon - noun - an icon associated with a particular website or web page and displayed when that site is bookmarkedDid you notice that tiny little sunflower next to the blog address up in the address bar? That is a favicon. It also appears on the tab if you are using Firefox. And, if you've humored me and bookmarked the blog, it may show up there.
I've been noticing favicons on a lot of blogs. I thought about customizing a favicon for the old Blogger system, but never got around to it. Then, Blogger updated their templates, and I never figured out the ropes of adding a customized favicon on the new Blogger system.
In steps my friend, Chris. With his help and some research, mission accomplished. Through trial and error, I got it figured out. Below are the steps I followed:
Disclaimer: I don't know squat about programming. Just a tiny bit from my CivicPlus days of working on websites. We had excellent programmers that set up a content development system, so there was very minimal programming involved for the rest of us. This is the "Favicons for Dummies" to the best of my abilities, since I don't know all the technical terms.
Preparing the image
- Choose a simple image that you would like to use to represent your site. Be sure to keep it simple since space is limited.
- Resize the image to 16x16. (Picnik is an easy tool to use for this)
- Save the image in .jpg format. (For additional formats, see Chris's comment below)
- Create a new post on Blogger, but do not publish it. Without writing anything, insert your chosen image into the post.
- After the picture has been added, go to the "Edit HTML" tab (above the toolbar at the top of your post).
- Copy the image source and paste it in a document for use in a bit. It probably looks something like this: http://1.bp.blogspot.com/_Svme5QPESp8/S_ajJKLBK1I/AAAAAAAAAs4/Ia0Iqn9wKPQ/s1600/sunflowers-10377.jpg
- Keep this blog post saved, but unpublished.
Placing the code
- While in Dashboard on Blogger, click on "Design." Now, click on "Edit HTML" on the link bar toward the top of the page.
- Once in the HTML, do a find for /head
- You are going to be inserting code directly above that line, so locate your cursor between the "</b:template-skin>" and "</head>" lines.
- Insert the following code: <link href='XXXXXXXX' rel='shortcut icon'/>
<link href='XXXXXXXX' rel='icon' type='image/jpg'/> - Replace the XXXXXXXX with the address for the picture that you copied earlier.
- Click the "Preview" button and cross your fingers.
- If the favicon appears when you preview your site, click the "Save Template" button. If the favicon doesn't appear, I don't know what to tell you... Maybe go through the steps again to make sure you tackled everything.
Let me know if you have any questions. I'll do my best to answer them. No guarantees!
Good luck!
A few points that might help clarify issues people run into:
ReplyDelete'.jpg' isn't the only option for image type here, though it is probably the easiest. '.png' and '.gif' will also work, and the general standard is '.ico'. If you want an animated icon (some folks do), an animated .gif is your best friend.
Generally speaking, you'll want the image you use to be scaled down to 16x16 (pixels) because various browsers may not display it properly otherwise. (Jenni, yours fits in this category; it's not displaying properly in Internet Explorer, and while I haven't tried it in all my other browsers, I believe a few others have the same issue.) You can do this online pretty easily, using any of the tools from a basic search for favicon generators.
Note that if you use an image type other than .jpg, you'll need to change the code from type='image/jpg' to the correct type (e.g. type='image/png', etc.).
You can also upload the image to any general hosting service like Picasa or Flickr, or your own domain if you own one, and use the direct link to that location as the address in the <link href='XXXXXXXX'> spot.
Great post, Jenni!
Thanks, Chris! Will take care of the 16x16. Don't have IE, so I hadn't noticed. I tried so many images that I forgot that I used one that wasn't scaled. Whoops! And will definitely add that detail to the post! Thanks again for your help!!
ReplyDelete