Jump to content

[MOD] Animated Favicon


Recommended Posts

here is the way I found to get an animated favicon for prestashop

1.) Move favicon.ico to root /
2.) Upload your favicon.gif to root /
3.) Navigated to themes/
4.) Download header.tpl
5.) Open header.tpl with favorite text editor
6.) Look for the following around line 14 or 15

<link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico" />



7.) Comment out so it looks like this

<!--<link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico" />-->



8.) Under your original commented out code add the following lines

<link rel="shortcut icon" href="../favicon.ico" >
<link rel="icon" href="../favicon.gif" type="image/gif" >



9.) Save file
10.) Reupload to server
11.) Clear cache
12.) Reload Site

Hope this helps

you can see mine here http://chrellisjewelry.com

  • Like 1
Link to comment
Share on other sites

  • 5 weeks later...
  • 2 weeks later...
here is the way I found to get an animated favicon for prestashop

1.) Move favicon.ico to root /
2.) Upload your favicon.gif to root /
3.) Navigated to themes/
4.) Download header.tpl
5.) Open header.tpl with favorite text editor
6.) Look for the following around line 14 or 15

<link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico" />



7.) Comment out so it looks like this

<!--<link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico" />-->



8.) Under your original commented out code add the following lines

<link rel="shortcut icon" href="../favicon.ico" >
<link rel="icon" href="../favicon.gif" type="image/gif" >



9.) Save file
10.) Reupload to server
11.) Clear cache
12.) Reload Site

Hope this helps

you can see mine here http://chrellisjewelry.com



Hi! There

I found problem, favicon.gif not show on the other page
I change No. 8
from

<link rel="shortcut icon" href="../favicon.ico" >
<link rel="icon" href="../favicon.gif" type="image/gif" >



to

<link rel="shortcut icon" href="{$base_dir_ssl}favicon.ico" >
<link rel="icon" href="{$base_dir_ssl}favicon.gif" type="image/gif" >



Now! favicon.gif show on every pages

--- SHARE FOR ALL ---

Link to comment
Share on other sites

ondrovic

Love your site. Please can you help me with a couple of pointers.
1) Where did you get your Header/Footer toolbars from as I would like to do the same. Can you help me?
2) How did you achieve the background.

Would be most greatful if you could share the code. Your site is very clean and I reall like the look. I've been working hard at mine but still need to improve.

Ps. how did you get the rounded edges on your blocks?

Best regards

Pinkloveshy

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 7 months later...
  • 1 year later...

I am using an old Prestashop version 1.1.0.5. In my case, I first added my icon through the BO (Preferences - Appearance - Favicon). This only made my icon to appear in the header of BO, but my FO was still showing the original Prestashop icon. So I searched for the code to find out what was wrong. I found it in header.tpl in my theme folder and changed the code as follows:

 

<link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico" />
 <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico" />

 

to

 

<link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}/favicon.ico" />
 <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}/favicon.ico" />

 

Literally, I only added "/" between "{$img_ps_dir}" and "favicon.ico".

 

This solved the problem and my icon is showing in both BO and FO. Hope this helps someone.

 

Have a great day. Jana

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...