View Single Post
  #10  
Old 07-25-2009, 07:06 AM
 
Marc Washburn Marc Washburn is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 72
 

Default Re: How do you vary the Header via Category?

Ok,

Thanks GB2World, I tried your code snippet, but it fails with this error message:

The code I created and placed just before the </head> tag is:

Code:
<style type="text/css"> <!-- {if $current_category.categoryid eq 25} #body {background: transparent url(images/neon_lights/head_top2.gif) left top repeat-y;} {/if} --> </style>

the error I get when refreshing the page viewing any category is:

Error: Smarty error: [in customer/home.tpl line 20]: syntax error: unrecognized tag: background: transparent url(images/neon_lights/head_top2.gif) left top repeat-y; (Smarty_Compiler.class.php, line 446) in /home/delicae/wwwroot/shopdelicae.com/include/lib/smarty/Smarty.class.php on line 1092

after hitting the refresh button, the error goes away, but it doesn't swap out the image, so its not working.

Any ideas, your code snipped makes sense to me, but I guess not the PHP compiler?
__________________
Marc Washburn
Natural Bath & Body Shop
P.O. Box 2555
Tarpon Springs, FL 34688
marc@naturalbathandbodyshop.com
www.naturalbathandbodyshop.com

Mod Newbie
X-cart 4.4.5 - Now Live !!! Hurray!
X-cart 4.2.1 - Delicae Gourmet
Reply With Quote