Home › Forums › General Issues › Value color select, have you an function ? › Reply To: Value color select, have you an function ?
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
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.