Screenshots use sample data and English labels. Follow the translated instructions on this page; your theme, language, permissions and license can change the available controls. Select an image to view it at full size.
Color field: builder settings, storage key and validation options.Color field: sample controls in the content editor.
What it doesStores a color value selected visually.
Use it whenBrand colors, backgrounds, accents or visual settings.
How to configureSelect Color. The editor gets a native WordPress color picker.
Saved asA sanitized color string such as a hex value.
EXAMPLE
Accent Color
#2271b1
Read a Color Field in PHP
Use the field Key from the builder as the second argument of get_post_meta(). Escape or sanitize the value for its final output context.
The color picker stores a color value as a string. Use esc_attr() when placing it inside an HTML attribute such as style. Security: Escape the value for its output context; do not print unescaped post meta directly into HTML.