View Single Post
  #9  
Old 05-15-2012, 07:23 AM
 
kdw kdw is offline
 

Member
  
Join Date: Oct 2011
Posts: 17
 

Default Re: Load different style sheets for main categories

Had an idea!
With clean URLs set the URL can/will contain the category name?
What smarty or PHP code would look for a word inside the URL and load image/css based on what it finds eg. {if strpos($smarty.get.page, "SWCHS.html") !== false}
<p>SWCHS image/CSS</p>
{else}
default image/css
{/if}

Would something like that work?
If so what code should I use as my example is not finding SWCHS
Keith
__________________
tech990
Reply With Quote