Home>Support>limit colors in site origins color picker.

limit colors in site origins color picker.

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi,

Im using the color picker and want to be able to pre set wich colors it should have. Can i somehow set pre defined colors in the code?

    	'background' => array(
        'type' => 'color',
        'label' => __( 'choose color', ''),
        'default' => '#ffffff'
    	)

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Fortyfiveknots,

    Unfortunately, this isn’t directly possible with the form field. I’ve logged this as a feature request. You should, however, be able to use JavaScript to do this by specifically targeting the field.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More