Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Sep 2008
    Posts
    99
    Plugin Contributions
    0

    Default where's favicon?

    Hi All
    Can someone tell me how to get the favicon.ico to show (in any browser) please. I don't have access to the root so if I placed it in catalog/ what would the Define look like in metatags? Is it this?

    define('FAVICON', DIR_WS_CATALOG.'favicon.ico');

    Thanks, Steve

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: where's favicon?

    Your question suggests that you have read the FAQ on this topic. It is referring to your site's root folder (i.e. the with the admin, includes, images, etc folders), not the server root. It would be extremely unlikely that you don't have access to this. That's also where the browsers will look for it.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Sep 2008
    Posts
    99
    Plugin Contributions
    0

    Default Re: where's favicon?

    Hi Kuroi
    Thanks for the help. After you clarified that I should be using the site root, a combination of deleting the bookmark, clearing private data and restarting the browser eventually solved it in Firefox. Similarly with Internet Explorer.
    Cheers,
    Steve

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: where's favicon?

    Good to hear.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Dec 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: where's favicon?

    A restart of the browser makes it work
    [FONT="Courier New"]------------------------------------------------------------
    I sell plain black and colourful T-shirts thanks to Zen Cart[/FONT]

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: where's favicon?

    ... depends upon the browser and even the version of the browser.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: where's favicon?

    I am unable to animate my favicon.

    It is my understanding that in Firefox you can have an animated gif favicon. I also understand that in IE this animation is not yet possible.

    First, I placed a new file called animated_favicon.gif in my root where my favicon.ico is also located.

    Next, I thought that I could simply add an additional line in my html_header.php and the animated gif would show in FF. However, this was not the case.

    Below are the particulars:

    File location: Includes/templates/MY TEMPLATE/common/html_header.php

    Location of attempted code addition: - about Line 34

    Original code
    PHP Code:
        <?php if (defined('FAVICON')) { ?>
        <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
        <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
        <?php //endif FAVICON ?>


    Added code
    PHP Code:
        <?php if (defined('FAVICON')) { ?>
        <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
        <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
        <!-- added animated favicon gif -->
        <link rel="icon" href="animated_favicon.gif" type="image/gif" >
      <?php //endif FAVICON ?>

    Has anyone had any luck with making their favicon animate?

    Thanks
    Sawhorse
    Last edited by Sawhorse; 25 Dec 2008 at 07:00 PM.

  8. #8
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: where's favicon?

    I believe I have the answer. Using information found in the following thread http://www.zen-cart.com/forum/showth...nimate+favicon I was able to animate my favicon.

    First, go to includes/languages/english/MY_TEMPLATE/mets_tags.php at about line 63 you will see the following:

    Original code:
    PHP Code:
    // favicon setting
    // There is usually NO need to enable this unless you need to specify a path and/or a different filename
    define('FAVICON','favicon.ico'); 
    replace/add code:
    PHP Code:
    // favicon setting
    // There is usually NO need to enable this unless you need to specify a path and/or a different filename
    define('FAVICON','favicon.ico');
    define('FAVICON2','animated_favicon.gif'); 
    Now go to includes/templates/MY TEMPLATE/common/html_header.php
    Location of code addition: - about Line 34

    Original code
    PHP Code:
    <?php if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>
    replace/add code:
    PHP Code:
    <?php if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />

    <!-- added animated favicon gif -->
    <link rel="icon" href="<?php echo FAVICON2?>" type="image/gif" />
    <link rel="shortcut icon" href="<?php echo FAVICON2?>" type="image/gif" />

    <?php //endif FAVICON ?>
    It work!!

    Sawhorse

  9. #9
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: where's favicon?

    Ok, everything works in FF but now I have lost the favicon in IE.

    I just now remove the animated gif (committed out) in both includes/languages/english/MY_TEMPLATE/mets_tags.php and includes/templates/MY TEMPLATE/common/html_header.php but still no favicon in IE. I believe I had it before but not now.

    I have rebooted. Just to clear everything and still no favicon in IE.

    Do you have any thoughts?

    Sawhorse

  10. #10
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: where's favicon?

    After some research, I have come to the conclusion that it was my IE that was the problem and not ZC.

    This problem seems to be a relatively common one.

    I now have both my FF & IE seeing the correct favicon.

    I believe that one must clear out all of your temporary IE internet files, etc...... Then close and then reopen your IE. If you already have your site saved in your favorites, the favicon will NOT show up until you close and reopen internet explorer!

    Since I tried a number of things to get my favicon showing in IE the above discussion is my best guess.

    Sawhorse

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Where does the image for the favicon.ico go?
    By SilverHD in forum General Questions
    Replies: 16
    Last Post: 1 Dec 2015, 04:09 AM
  2. Replies: 2
    Last Post: 8 Sep 2010, 01:28 AM
  3. favicon ?
    By jbarrick in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Jul 2009, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg