![]() |
Different Stylesheet for Each Manufacturer
Hi,
I was wanting to have different stylesheets for each Manufacturer. Basically when each Manufacturer is viewed, the text, links, box headers, etc need to be unique to that particular Manufacturer. Could you anybody advise how to achieve this? Thanks. |
Re: Different Stylesheet for Each Manufacturer
I suppose you could base it off of the manufacturer id and have a stylesheet for each one.
|
Re: Different Stylesheet for Each Manufacturer
Yes, exactly as I thought.
Would you happen to know the code to use and where to place it on customer/home.tpl or other? Thanks |
Re: Different Stylesheet for Each Manufacturer
Well, I think a lot would depend on if you want to retain the classes from skin1.css or change them all. If you redefine a class with a new stylesheet it will be the "default" unless it is again redefined by another stylesheet. It would be the same as defining a class "last" in skin1.css, the original class would be "forgotten" with the new one. It can get very complicated very quickly.
I'm not sure of the actual syntax or variables to use, but it could be something like... {if $manufacturerid ne ''} <link rel="stylesheet" href="{$SkinDir}/{$manufacturerid}.css" /> {else} <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" /> {/if} and put in skin1/customer/home.tpl where "<link rel="stylesheet" href={$SkinDir}/{#CSSFile#}" />" is presently. |
Re: Different Stylesheet for Each Manufacturer
Hi,
Thanks very much for your suggestions. Most appreciated :) |
All times are GMT -8. The time now is 09:11 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.