Good day Open Cart Community,
I am using V1.5.3.1.
from the admin, we can set the icon for the browse to display on our site tab(16x16 pixel).
i have set my own and it is showing on Google Chorme browser but the IE browser is still showing the IE Icon instead of the one i set.
any advice on this?
thank you.
kind regards,
Jave
Hi there,
In order to set IE icon there, you must do the following:
Convert your favicon.png to favicon.ico.
You can use http://www.favicon.cc/ to convert your .png image to .ico
Put the favico in your image/ folder
Once that is done you will need to add the following line to:
Browse: //yoursite/catalog/template/theme/default/template/common/header.tpl
*default is the theme for this e.g, it vary in accordance to your theme
Add the following lines(I add it the line after <title></title>) :
<?php echo "<link rel=\"icon\" href=\"image/favicon.ico\" type=\"image/x-icon\">";?>
<?php echo "<link rel=\"shortcut icon\" href=\"image/favicon.ico\" type=\"image/x-icon\">";?>
And you are done.
In order to set IE icon there, you must do the following:
Convert your favicon.png to favicon.ico.
You can use http://www.favicon.cc/ to convert your .png image to .ico
Put the favico in your image/ folder
Once that is done you will need to add the following line to:
Browse: //yoursite/catalog/template/theme/default/template/common/header.tpl
*default is the theme for this e.g, it vary in accordance to your theme
Add the following lines(I add it the line after <title></title>) :
<?php echo "<link rel=\"icon\" href=\"image/favicon.ico\" type=\"image/x-icon\">";?>
<?php echo "<link rel=\"shortcut icon\" href=\"image/favicon.ico\" type=\"image/x-icon\">";?>
And you are done.
I know this is a very late reply, but thank you hashashino for giving me these lines of code to get the favicon working in Opencart as well as on my HTTP pages
Stokey
Who is online
Users browsing this forum: No registered users and 148 guests