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

Advanced Member
  
Join Date: May 2004
Posts: 72
 

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

gb2world and everyone else...thank you SOOO MUCH!

Got it working via this code:

Code:
<style type="text/css"> {if $current_category.categoryid > 5 and $current_category.categoryid < 8} <!-- {literal} #header .head_wrap {background: transparent url(/skin1/images/neon_lights/head_top_coffee.jpg) left top no-repeat;} #header .line1 {background: transparent url(/skin1/images/neon_lights/head_top_coffee.jpg) left top no-repeat;} #header {background: #ffffff url(/skin1/images/neon_lights/head_bg_coffee.jpg) repeat-x 1px top;} {/literal} --> {/if} {if $current_category.categoryid eq 2 or $current_category.categoryid eq 3 or $current_category.categoryid eq 5 or $current_category.categoryid eq 32 or $current_category.categoryid eq 33} <!-- {literal} #header .head_wrap {background: transparent url(/skin1/images/neon_lights/head_top_bread.jpg) left top no-repeat;} #header .line1 {background: transparent url(/skin1/images/neon_lights/head_top_bread.jpg) left top no-repeat;} #header {background: #ffffff url(/skin1/images/neon_lights/head_bg_bread.jpg) repeat-x 1px top;} {/literal} --> {/if} </style>

Thank you again for everyone's help. I am proud of myself as this is the first time I am coding in Smarty. The last languages I coded in was Pascal and Cobol...

I had a couple of other formatting issues and errors, but using the Firefox Plug in 'Webmaster Tools', I was able to follow the CSS code and see when the variables worked and didn't work.

thanks again,
__________________
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