GetSimple Support Forum

Full Version: changes in css
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
can you think of any function, so you can make changes in css file using, for example, plugin I18N Special Pages
What kind of changes, sure you can put style tag anywhere but you are usually not supposed to. But it usually works
in GetSimple CMS there is a file css.php. I meant something like.
The easiest way would be to just put the styles into the template itself, e.g.:
[code]
<?php if (return_special_field('color')) == 'red') { ?>
<style type="text/css">
body { background-color: red; }
</style>
<?php } ?>

You could also include different css files depending on a page field.

Or you could use lessPHP to write .less files instead of .css files and pass parameters (based on special fields) to it from your template. For each combination of parameters you can then compile and cache the css file and include the correct one in your template.
Thanks for the tips, I'm trying to make from GetSimple CMS kit of landing pages, I would still like to make changes to the css file or explore the .less Smile
Oleg, I have finally finished the long planned plugin for LESS and you can find it here and here (support thread).

LESS is now really simple to use with GetSimple.
thank you very much Martin Smile