Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changes in css
#4
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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
changes in css - by Oleg06 - 2014-03-25, 08:09:12
RE: changes in css - by shawn_a - 2014-03-25, 09:07:21
RE: changes in css - by Oleg06 - 2014-03-25, 11:29:41
RE: changes in css - by mvlcek - 2014-03-25, 18:27:52
RE: changes in css - by Oleg06 - 2014-03-25, 19:27:07
RE: changes in css - by mvlcek - 2014-03-26, 07:22:39
RE: changes in css - by Oleg06 - 2014-03-26, 17:12:17



Users browsing this thread: 1 Guest(s)