WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Change color template different css

<< < (4/4)

sky writer:
Both of you are above me in ability, and so I ended up doing it (probably) the hard way, but for now it is working...


--- Code: ---<?php
if (PAGE_ID==21) { ?>
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/dark.css" media="screen,projection" />
<?php } ?>
<?php
if (PAGE_ID==22) { ?>
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/light.css" media="screen,projection" />
<?php } ?>
--- End code ---

sky writer:
Thank you for pushing me in the right direction.  Finally got it.


--- Code: ---<?php 
$css = "/style.css"; //default
if (PAGE_ID==21) $css = "/dark.css";
if (PAGE_ID==22) $css = "/light.css";
?>
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR.$css; ?>" media="screen,projection" />

--- End code ---

Ruud:

--- Quote from: sky writer on April 04, 2012, 10:34:38 PM ---Thank you for pushing me in the right direction.  Finally got it.

--- End quote ---
There are so many ways to do these things.. This is a good one  :-)

I am really happy you shared your final working solution(s) with the community. An example for all of us.

Tez Oner:

--- Quote ---I am really happy you shared your final working solution(s) with the community. An example for all of us.
--- End quote ---

Cooking with Website Baker just needs the right ingredients to be shared... ;)

and @ruud... For a left handed...
--- Quote ---Tez is a little bit right.
--- End quote ---

sounds quite funny lol,

Cheerz,

Tez

mdemaree99:
Since it will be temporary and showing customer different colors...

Put all code in one CSS.
Make a droplet that will have a pull down menu or radio buttons for each color.
Put the droplet in the Website header or footer section in the General settings under Settings.
This would let you show the customer how each page would look with a certain color.

Navigation

[0] Message Index

[*] Previous page

Go to full version