Color Picker Field

Pick any color.

The Color Picker field picks any color in a color picker.

To restrict the choice to the colors of your theme, use the Color Palette field.

Configuration

Go to Modern Fields > Fields groups and add the Color Picker field. Its settings are in the inspector:

Effect
Enable opacityLets the user set the transparency of the color.
Show clear buttonAdds a button to empty the field. On by default.
The Color Picker field settings

Display the color

The field stores the color as a CSS value, such as #e5554e. Read it with get_field():

PHP

Map Field


In this documentation