Template breaks down in IE

GK User
Tue Aug 07, 2012 5:42 pm
Hi,
I made some positions fixed in order the topbar to scroll down and in internet explorer the site breaks down because of them.
for example #gkmainmenu.gktopspace { and #gksearch { have position fixed
Can you please help me to fix that?I want to keep these positions fixed.
you can check with internet explorer beta.greeceinsiders.com
with mozilla and chrome everything is fine


Thanks
User avatar
Expert Boarder

GK User
Tue Aug 07, 2012 8:52 pm
Hi,

I'm checking your site with IE and seeing that it forces IE to use Quirk mode which causes the layout broke, if it runs with Standard mode, everything will be ok like in Firefox or Chrome. This issue is happening because you have added some javascript code to your header:
Code: Select all
<script data-cfasync="false" type='text/javascript'>/*{literal}<![CDATA[*/
window.olark||(function(c){var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){f[z]=function(){(a.s=a.s||[]).push(arguments)};var a=f[z]._={},q=c.methods.length;while(q--){(function(n){f[z][n]=function(){f[z]("call",n,arguments)}})(c.methods[q])}a.l=c.loader;a.i=nt;a.p={0:+new Date};a.P=function(u){a.p[u]=new Date-a.p[0]};function s(){a.P(r);f[z](r)}f.addEventListener?f.addEventListener(r,s,false):f.attachEvent("on"+r,s);var ld=function(){function p(hd){hd="head";return["<",hd,"></",hd,"><",i,' onl' + 'oad="var d=',g,";d.getElementsByTagName('head')[0].",j,"(d.",h,"('script')).",k,"='",l,"//",a.l,"'",'"',"></",i,">"].join("")}var i="body",m=d[i];if(!m){return setTimeout(ld,100)}a.P(1);var j="appendChild",h="createElement",k="src",n=d[h]("div"),v=n[j](d[h](z)),b=d[h]("iframe"),g="document",e="domain",o;n.style.display="none";m.insertBefore(n,m.firstChild).id=z;b.frameBorder="0";b.id=z+"-loader";if(/MSIE[ ]+6/.test(navigator.userAgent)){b.src="javascript:false"}b.allowTransparency="true";v[j](b);try{b.contentWindow[g].open()}catch(w){c[e]=d[e];o="javascript:var d="+g+".open();d.domain='"+d.domain+"';";b[k]=o+"void(0);"}try{var t=b.contentWindow[g];t.write(p());t.close()}catch(x){b[k]=o+'d.write("'+p().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'}a.P(2)};ld()};nt()})({loader: "static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]});
/* custom configuration goes here (www.olark.com/documentation) */
olark.identify('8239-185-10-3678');/*]]>{/literal}*/</script>

Please move it to make sure that the below code is always on top if you view the source code of the site:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
User avatar
Platinum Boarder

GK User
Wed Aug 08, 2012 3:22 am
Hi thank you so much,
i have that script at the index.php of the template.If i remove it everything is fine with IE.
But when if i keep the script and add:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

then also everything works fine but not the bottom positions, if you see the footer is cut,
do you have any suggestion to fix the footer? (cause i need this script)
If not it is ok i will remove the script

Thank you you are the best
User avatar
Expert Boarder

GK User
Thu Aug 09, 2012 3:05 pm
Don't add the code to index.php, in the template folder, find head.php under "block" folder and add it to bottom instead.
User avatar
Platinum Boarder

GK User
Mon Aug 13, 2012 11:49 am
Hi ,
sorry i cant find the header.php, can you please tell me where to find it?
Thank you very much
User avatar
Expert Boarder

GK User
Mon Aug 13, 2012 12:03 pm
Sorry, my mistake, the file is head.php, please add the code to very top of this file (before the first line).

Cheers,
User avatar
Platinum Boarder

GK User
Mon Aug 13, 2012 12:47 pm
No , you told me that is head.php my mistake but i cant find it, can you tell me where should i search?
in the template folder i cant find it
User avatar
Expert Boarder

GK User
Mon Aug 13, 2012 1:13 pm
Sorry for not being clear, the file is under this folder: \templates\gk_esport\layouts\blocks\

Cheers,
User avatar
Platinum Boarder

GK User
Mon Aug 13, 2012 5:01 pm
Thank you very much,
Everything works fine now
User avatar
Expert Boarder

GK User
Mon Aug 13, 2012 5:04 pm
I'm glad to know that, don't hesitate to ask if you need any other help.

Cheers,
User avatar
Platinum Boarder


cron