Hello
I have downloaded the Pearl template from themes.cmsmadesimple.org
I have the following error at the top of the page:
string(83) "Smarty error: unable to read resource: "globalcontent:JavaScript for IE page width""
This line is in the head section of the template.
Can anyone advise to what it is referring and how i can get rid of it.
Many thanks
Josette
error on downloaded template
Re: error on downloaded template
Create a global content block (Content » Global Content Blocks » Add Global Content Block) with the name "JavaScript for IE page width" and this content (it's in the CMS Made Simple default content, maybe you deleted it?):
Regards,
D
Code: Select all
{literal} <__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script> <!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]--> {/literal}
D