Home Forums Feature Requests Checkbox > Colors Reply To: Checkbox > Colors

  • Hi @berniinfante

    What is this (I don’t understand why you have pasted this code):

    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?