Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Recently I've been seeing a lot of premium wordpress themes that includes a palet to change background colors, like this one: http://pexeto.com/dandelion_wp/ and this one: http://kaptinlin.com/themes/striking/

Is the colour being saved in the database or is just changes in the current session?

UPDATE (Copied from duplicate)

Basically, I would like to add this color picker:

enter image description here

To a custom "Theme Options" to let the client pick, for instance, the color of links or company identity colors (maybe some divs' background).

and how the code that modifies the CSS would look like?

How to do that?

share|improve this question
add comment

1 Answer 1

The color is being saved in a cookie set via javascript.

This is more of a JavaScript question.

How to change the background color with a color picker: http://stackoverflow.com/questions/4146621/changing-colors-with-jquery-with-a-color-picker

How to use jQuery to manage cookies: http://www.ilovecolors.com.ar/using-cookies-jquery/

share|improve this answer
2  
@janoChen - NOTE: You don't need to download a jQuery color picker, Farbtastic is included with WordPress(it's a jQuery color picker), and i think the exact same one used on the first link in the question (it's easy to use to). –  t31os Jan 23 '11 at 10:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.