Themes - php in main.css
Permalink
Hi All,
I would like to use some variables in my main.css so i changed the the name of the file to main.css.php and added the following to the top of the file:
<?php
header("Content-type: text/css");
$bg_color = "#ccc";
?>
In my header I have the following line:
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css.php')?>" />
This works on one of my other sites but I can't get it work in Concrete5. Any ideas?
Cheers,
Mårten
I would like to use some variables in my main.css so i changed the the name of the file to main.css.php and added the following to the top of the file:
<?php
header("Content-type: text/css");
$bg_color = "#ccc";
?>
In my header I have the following line:
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css.php')?>" />
This works on one of my other sites but I can't get it work in Concrete5. Any ideas?
Cheers,
Mårten