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' )
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.