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,
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.
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.