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

limit colors in site origins color picker.

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. 6 years, 4 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