Hello content managers!
Does a module/plugin/snippet that allows a non-privileged user to change CSS on the fly on the site the user is vistiting? Of course, the changes should only apply to the user that makes the change.
I have done something similar with success with JavaScript and HTML.
Thing is I don’t have any idea how to get it working. The explanation doesn’t help me much, it seems to require some experience.
With this code pasted into my template I get to choose from only one style sheet, namely Default css.
I don’t think it’s my default.css style sheet it lists. I have two sheets, default.css and default2.css - not on the list.
In the snipped code i’ve changed the following:
// Configuration
$csspath = ’/assets/templates/chitchat/’;
$cssprintpath = $csspath;
$cssdef = ’default’;
$cssign = ’print’;
$hlist = 0;
$cssprintprefixe = ’print_’;
What should I change to get it showing my sheets?
Do you have &parsefolder=`1` in the snippet call? What is your snippet call?
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Try
$csspath = ’/modx/assets/templates/chitchat/’;
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Thing is, now my style sheets actually show up on the list, but the changes doesn’t apply after picking the sheet.
The default2.css should make the body background black and the header double size. It doesn’t. Why is that?