This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

limit colors in site origins color picker.

7 years ago · Last reply by Alex S 7 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 7 years, 9 months ago

    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.

Have a different question or issue?

Start New Thread