Home › Forums › Feature Requests › Checkbox > Colors › Reply To: Checkbox > Colors
What is this (I don’t understand why you have pasted this code):
<?php
do_action(‘acf/create_field’, array(
‘type’ => ‘checkbox’,
‘name’ => ‘white[hide_on_screen]‘,
‘value’ => $white['hide_on_screen'],
‘choices’ => array(
‘the_content’ => __(“<?php ?>”,’acf’),
‘excerpt’ => __(“Excerpt”),
‘custom_fields’ => __(“Custom Fields”),
… )
));
?>
As for you original question. Have you checked the page source (html) to actually see what is rendered. You may find that all you need to do is add a ‘#’ before the value for it to be a correct CSS color?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.