rocdy Posted October 14, 2009 Posted October 14, 2009 Any one know how to add favicon.ico in address bar? Any reply will be very appreciated. Thank before. Best regard Rocdy Rocdy Beginner in php programming and still learning from this forums. Special thanks for Oscommerce Community Forums that help me a lot. :-)
Xpajun Posted October 14, 2009 Posted October 14, 2009 As I understand it, if you put a 16px x 16px image called favicon.ico in your root directory it will show in the address bar, on tabs and in favorites/bookmarked If you can't produce a favicon.ico image then you can do the following: Put this code in the header of every page you want to show the icon: <link REL="SHORTCUT ICON" HREF="http://MY_SITE.com/name.gif"> and the name.gif in the root directory image should be 16 x 16 maximum My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary
rocdy Posted October 14, 2009 Author Posted October 14, 2009 As I understand it, if you put a 16px x 16px image called favicon.ico in your root directory it will show in the address bar, on tabs and in favorites/bookmarked If you can't produce a favicon.ico image then you can do the following: Put this code in the header of every page you want to show the icon: <link REL="SHORTCUT ICON" HREF="http://MY_SITE.com/name.gif"> and the name.gif in the root directory image should be 16 x 16 maximum Thanks U, it's working. I just find some contributions icon in address bar, it's the same way that you mention it. Thanks U http://addons.oscommerce.com/info/3495 Rocdy Beginner in php programming and still learning from this forums. Special thanks for Oscommerce Community Forums that help me a lot. :-)
multimixer Posted October 14, 2009 Posted October 14, 2009 well, the image need to be called favicon.ico and the link to is <link rel="shortcut icon" href="/favicon.ico"> in the <head> section of the html As to where to put it, I'm not sure. since I use sts, I put it into my default template + other "main templates". For regular osCommerce, I would try to put it into the header.php EDIT: great that it works in the above way too, I didn't know My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Jack_mcs Posted October 14, 2009 Posted October 14, 2009 To clarify this, a gif image will work but is not fully supported. The browsers look for favicon.ico automatically but that can be changed. The code for the favicon just needs to be in the index.php file and the favicon.ico image is usually placed in the root directory but can be placed elsewhere. There are many sites around that will allow you to upload some image you have and have it converted to the correct image, at no charge. All sites should add a favicon since it cuts down on server errors and bandwidth usage. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
ErikMM Posted December 13, 2010 Posted December 13, 2010 for 2.3.1: at the bottom of catalog/includes/header.php (after ?>) add this <link rel="shortcut icon" href="http://yoursitename.com/catalog/favicon.ico"> make sure the favicon.ico is located in catalog (or wherever you saved it to, which could also be in the root, yoursite.com, outside of catalog) a-how-to-road-map 2.3.x road-map-for-the-newbies design basics how to make a horrible osC site ssl-how to updated-security-thread Web Developer, Firebug, and Notepad++ are powerful free tools for web design.
mondobongo3 Posted December 13, 2010 Posted December 13, 2010 If you drop your favicon.ico in your website root, it will be used by default. But be sure that you name it favicon.ico.
pdcelec Posted December 13, 2010 Posted December 13, 2010 If you want it to validate as xhtml use <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" /> A tool for producing them can be found here http://tools.dynamicdrive.com/favicon/
golith Posted December 14, 2010 Posted December 14, 2010 tring to do the same thing in V2.3.1 application_top.php ADD <link rel="shortcut icon" href="http://www.cictradinggroup.com.au/favicon.ico"> AFTER <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" /> but the icon is not displaying any ideas there??
Xpajun Posted December 14, 2010 Posted December 14, 2010 If you are using favicon.ico which is 16 x 16 then there is no need to put anything in any of your files, it should be in your root directory though My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary
andy_1984 Posted December 14, 2010 Posted December 14, 2010 If you are using favicon.ico which is 16 x 16 then there is no need to put anything in any of your files, it should be in your root directory though i think that's if the browser supports that feature so its a good idea to have the code in case some browser doesnt work like this.
Xpajun Posted December 14, 2010 Posted December 14, 2010 i think that's if the browser supports that feature so its a good idea to have the code in case some browser doesnt work like this. You could be right there probably are some basic browsers that don't support it along with css as well :-" :-" My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary
StreamMan Posted January 3, 2011 Posted January 3, 2011 @scot The favicon.ico may take up to 3 days to show. Also follow the way Erik M explane for 2.3.1: at the bottom of catalog/includes/header.php (after ?>) <link rel="shortcut icon" href="http://yoursitename.com/catalog/favicon.ico">
Recommended Posts
Archived
This topic is now archived and is closed to further replies.