Zen Cart Logo

Double Header on IE

Views: 846

Results 1 to 3 of 3
10 Feb 2011, 4:06 AM
#1
mrcolj avatar

mrcolj

New Zenner

Join Date:
Feb 2011
Posts:
9
Plugin Contributions:
0

Double Header on IE

Recently my site has started showing double headers on IE. If you click the link above in FF or Chrome, it'll show fine, but on IE the header is simply repeated twice. The second instance doesn't have a hyperlink, so it's not exactly the same.

I know it's probably something simple that I should have figured out by now, and I apologize in advance for that.

Any help?

10 Feb 2011, 11:46 AM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Double Header on IE

Looks like you may have removed some stuff you shouldn't have from header.php and/or tpl_header.php.

Here's a stock Zencart branding section:

<!--bof-branding display--> <div id="logoWrapper"> <div id="logo"><a href="http://www.xxx.org/"><img src="includes/templates/demo/images/logo.gif" alt="Powered by Zen Cart :: The Art of E-Commerce [home link]" title=" Powered by Zen Cart :: The Art of E-Commerce [home link] " width="192" height="64" /></a></div>
<div id="taglineWrapper">
  <div id="tagline"><h1>Sales Message Goes Here</h1></div>
</div>
</div> <br class="clearBoth" /> <!--eof-branding display-->

and here's yours:

<!--bof-branding display-->

<a href="http://www.oldwinchesters.com"><div id="logoWrapper"></a>

</div></a>

You have two </a> tags, no <img> tag and no closing comment, which suggests some of that section got accidentally removed.

10 Feb 2011, 1:33 PM
#3
mrcolj avatar

mrcolj

New Zenner

Join Date:
Feb 2011
Posts:
9
Plugin Contributions:
0

Re: Double Header on IE

Thank you! Just takes an experienced eyeball to see it. (I'm just techie enough that I really did accidentally type iBall in that last sentence!)

Anyway, I changed the code to

<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><a href="http://www.oldwinchesters.com"></a></div>

<div id="taglineWrapper">
<div id="tagline"></div>
</div>
</div>
<br class="clearBoth" />
<!--eof-branding display-->

and all is fixed. Thanks again. :smartalec: