WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
@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

Your Answer


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.