2014-03-25, 08:09:12
can you think of any function, so you can make changes in css file using, for example, plugin I18N Special Pages
changes in css
|
2014-03-25, 08:09:12
can you think of any function, so you can make changes in css file using, for example, plugin I18N Special Pages
2014-03-25, 09:07:21
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.
2014-03-25, 18:27:52
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
2014-03-26, 07:22:39
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.
2014-03-26, 17:12:17
thank you very much Martin
|
« Next Oldest | Next Newest »
|