What is a favicon?
A favicon (short for favorites icon), also known as a shortcut icon, is a graphic image (a 16×16 (can also be 32×32 or 64×64) pixel square icon) associated with a particular website or webpage. Browsers that provide favicon support typically display a page’s favicon:
- in the browser’s address bar

Example - favicon in browser address bar
- next to the page’s name in a list of bookmarks / favorites

Example of favicon in Bookmark/Favorite list
- next to the page’s title on the tab.

Example of favicon in tabbed window
Creating a favicon
A favicon can be easily created using any graphic program that will allow saving of .ico graphic files. However, it can be a bit tricky creating a good looking image only 16 x 16 pixels, so a good option is to try an online service that will allow you to create a favicon for free. An example is Dynamic Drive’s FavIcon Generator.

Dynamic Drive's FavIcon Generator
Firstly, prepare your iamge by cropping or adding space around the image to make the image square.
Click on Browse to upload your image and the FavIcon Generator does the rest.
Try a few different images to see the results – you may wish to crop your logo image, for example, to show only a portion if your full logo does not convert well.
Installing a favicon
Once you have downloaded the generated favicon, there are a couple of methods to install your new favicon in Zen Cart.
Upload to ‘root’
Upload your new favicon in the root directory of your web site (ie public_html or httpdocs), using your FTP program. In most cases, this is all you will need to do.
Add favicon settings to Zen Cart
If, as an example, your Zen Cart store is in a subfolder of your main website and you wish to use a different favicon for your store, you can configure Zen Cart to set the favicon data for your store pages explicitly.
- In your includes/languages/english/custom/meta_tags.php file, uncomment (by removing the two forward slash characters) the define statement for FAVICON as below:
// favicon setting // There is usually NO need to enable this unless you wish to specify a path and/or a different filename define('FAVICON', 'favicon.ico');With that set, Zen Cart will explicitly mention the favicon settings on every page, automatically.
- Using your FTP program, copy your favicon.ico file into the root directory of your Zen Cart store.
Note: Browsers, particularly Internet Explorer, can be a little ‘temperamental’ when it comes to showing your new favicon successfully each time. If you do not see your new favicon try bookmarking your store, or adding to Favorites, and clearing your browser’s cache . And then sometimes, it just seems to take a while to ‘kick in’. Be patient ![]()
|
|||||||




#1 by Stainless Steel Jewelry on 26 November, 2009 - 2:28 pm
Thanks a lot
i have used it on my zen cart and it really takes time for it to show up but it finally worked
#2 by kerrin hardy on 26 November, 2009 - 5:04 pm
Good stuff! Thanks for letting me know it worked for you on your Zen Cart store.
cheers
Kerrin
#3 by Susan on 17 February, 2010 - 3:09 am
These instructions didn’t by themselves do it for me. Viewing site in IE8 the favicon would still not display.
Definitely had to uncomment the favicon line in the meta_tags.php file, but more than that had to include absolute URL to the file.
Then go back to IE8 and clear out ALL cached data not just Temporary Internet Files. Close browser. Open browser. View site – wait until the entire page had fully loaded and then the favicon finally displayed.
Hope this helps others.
#4 by kerrin hardy on 17 February, 2010 - 7:52 am
@ Susan Thanks for your update. Interesting that the absolute URL is required. I’m sure your update will help others. Thanks again, Kerrin
#5 by Greg on 27 November, 2010 - 7:12 am
Though Susan’s approach works it should not be necessary and it will lead to maintenance issues. I agree that the first post is not clear enough and the information is copied all over the web … I guess people are just trying to sell the books instead of providing complete answers.
The problem is that it is unclear where in the directory structure the favicon is being looked for. If you go through the code it is also unclear without having to read a lot of code. I have been able to resolve some of my other issues by documenting which directories do what and experimenting. I like zen cart but it was definately not designed with maintenance in mind. What makes matters worse is the same files are loaded all over the place.
For a free program it is fantastic and I will definately contribute to them but someone from a more formal background needs to do a code review to clean up the overall structure to make life easier for all.
If I find the right combination I will post the information but in the mean time .. does anyone have a clear set of instructions that show how to load the favicon in a multi site directory structure … IE: only use relative paths … Never hard coded … sorry but I grew up with Assembler.