Support

Account

Home Forums General Issues Value color select, have you an function ?

Helping

Value color select, have you an function ?

  • Hello,

    thanks you for your great plugin.

    I need color my text when i use the select box in my post.

    (i use visual composer for display the select label)

    Do you have an function for the color on the text label with the value ?

    (exemple: green : Label) (i think)

    Thanks for your help and sorry for my bad english.

    Youpain.

  • If you’re still looking for help. Not exactly sure what you’re looking for.

    Do you want to create a field to select a color and then use that color to change a font color?

    Use a Color Picker field. This will allow the selection of a color then.

    
    $color = get_field('my_color_picker_field');
    ?>
      <span style="color: <?php echo $color; ?>;">My Text Here</span>
    <?php 
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.