Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Try this if you are having rendering problems in IE8

Try this if you are having rendering problems in IE8

Locked

Views: 895

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Mar 2010, 12:21 PM
#1
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Try this if you are having rendering problems in IE8

Hi all, in the process of migrating my next webstore to ZC, I noticed that IE kept throwing my page into the dreaded 'quirks mode'

I repaired every faulty tag I could find, even to the point where the W3c Validator http://validator.w3.org/ passed my layout as being compliant. (But of course IE STILL threw the page out)

I found a site that let you preview your layout in different versions of IE, and this is where i noticed that ONLY IE 8 was causing the problem.

(The problem just briefly, being that my main content div would be pushed down the page by a few hundred pixels.)

Ive added this code into my html_header.php file;

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

This forces IE8 to render like its actually IE7.

My problem is now gone. Im still not 100% sure what caused it in the first place, but I suspect its something to do with IE8s multi language support (a new feature) but thats really a guess.

The main thing is, the layout now renders correctly in IE, FF and Safari on both Mac and Pc for me and I dont get any more quirks mode warnings.

I thought I would post the fix i discovered, as the problem has been driving me batty for weeks now.

Cheers,

Scott.

3 Jun 2010, 1:33 AM
#2
ykashima avatar

ykashima

New Zenner

Join Date:
May 2010
Posts:
5
Plugin Contributions:
0

Re: Try this if you are having rendering problems in IE8

I wonder if you can help me. I was trying to follow your instructions, but could not find the file, html_header.php.

Instead, I found this one, tpl_header.php. I don't even know the difference.

Anyway, I entered the code at the bottom, and it messed up my website. It took the header out completely.

So, I deleted it, and I thought no harm done, but I must have touched something else in there, and now, it is still messed up.

If you go to my website, https://www.Gurumeclub.com, and go to the Fresh or Frozen Gourmet page, you will see that I'm having the same problem only with IE, and I have IE8.

I was fine with Firefox until this new problem happened.

Is there way to go back in time to before the problem, since I have no idea what is messed up in there.

Zennin:dontgetit

3 Jun 2010, 1:57 AM
#3
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Try this if you are having rendering problems in IE8

Hi Zennin, do you still have the original folder you downloaded of Zen Cart?

I would suggest getting the tpl_header.php file from;

includes/templates/template_default/common

and restoring it to your website. If you made custom changes to your tpl_header.php file you will loose them unfortunately.

Now the html_header.php file that you need to add the code into resides also in ;
includes/templates/template_default/common

you need to copy that file and put it into;

includes/templates/YOUR_TEMPLATE/common - then you can edit the file and have the changes reflected in your template.

3 Jun 2010, 2:21 AM
#4
ykashima avatar

ykashima

New Zenner

Join Date:
May 2010
Posts:
5
Plugin Contributions:
0

Re: Try this if you are having rendering problems in IE8

I'm sure all of this is good advice, but it is way over my head.

I had a professional do some changes to the header, so I don't know how to get it back like it was.

I also don't know how to get the original file.

Do you help people like me for a fee?

Zennin

3 Jun 2010, 4:50 PM
#5
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Try this if you are having rendering problems in IE8

Hi, I sent you a PM.