I am working on a project in PHP. I would like the users to change colors,font-size,etc on their profile using an options panel. Something similar to WordPress theme optional panel.
Can someone point me into the right direction to how I should go about doing this?
When the pages load that these styles will be applied on, use javascript to set the styles. For example, if you’re using jQuery on your site, and you were going to apply a text color to all the text on the site, you’d do this:
// Assume that the variable customColor has been set with the data from your database.
$(‘p’).css(‘color’, customColor);
Now if you haven’t done much javascript, or much interaction between a script and your server side php, there are probably gaps here.