Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / Words FAVICON_CODE in Top Left of every Store Window

Words FAVICON_CODE in Top Left of every Store Window

Started by peace_freak on 7 May 2013, 12:57 PM · Views: 742

Results 1 to 5 of 5
7 May 2013, 12:57 PM
#1
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Post #1 by peace_freak

The words "FAVICON_CODE" are immovably possitioned in the top left corner of each page of my store causing some items in the CSS header to be moved downwards. It is not visible when in the Admin area.

I did a search for FAVICON_CODE using the Developers Toolkit and found several instances but I am not sure what to make of them.

In my old Zen 1.3 site I had written the favicon code in:
/home/globalpe/public_html://......jp/includes/languages/my_template01/english.php

as:
Line #28 : define('FAVICON_CODE','<link rel="icon" href="http://www......./Images/favicon.png" type="image/x-icon" />'.

But that is no longer in the 1.5.1 store files. I guess there is some related leftover code somewhere that I need to delete but I am not sure where to look...

Anyway, any advice would be appreciated.

7 May 2013, 2:36 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

FAVICON_CODE doesn't appear in the DTK here, so it's a define from a mod you installed. A link to the site might help.

8 May 2013, 9:52 AM
#3
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Post #3 by peace_freak

Thanks for your help.

Did a bit of searching and found a bit code from my earlier site that shouldn't have been there in:

templates/common/html_header.php:

<?php echo FAVICON_CODE; ?>

Deleted it and the text is no longer showing. My favicon is not showing up yet but I should be able to get that working...

Cheers!

8 May 2013, 5:20 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

The FAVICON_CODE you mentioned didn't come from original Zen Cart code.
Zen Cart does its favicon support using the FAVICON constant, not a FAVICON_CODE constant. And Zen Cart's behaviour about this is explained in the FAQs area.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 May 2013, 11:58 PM
#5
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Post #5 by peace_freak

Thank you, will check it out.