error on downloaded template

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Josette

error on downloaded template

Post by Josette »

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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: error on downloaded template

Post by Dee »

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?):

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}
Regards,
D
Locked

Return to “Layout and Design (CSS & HTML)”