Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changes in css
#1
can you think of any function, so you can make changes in css file using, for example, plugin I18N Special Pages
Reply
#2
What kind of changes, sure you can put style tag anywhere but you are usually not supposed to. But it usually works
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
in GetSimple CMS there is a file css.php. I meant something like.
Reply
#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
#5
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
Reply
#6
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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#7
thank you very much Martin Smile
Reply




Users browsing this thread: 1 Guest(s)