158
rated 0 times
[
159]
[
1]
/ answers: 1 / hits: 24223
/ 9 Years ago, sat, august 22, 2015, 12:00:00
I'm trying to build a review system in WP with Advanced Custom Fields, but I can't solve this. I want to change the color of a score based on the number.
For example: if the writer puts 0-40 as score it has to be changed to red; if the writer puts 40-60 it has to be changed to orange; if the writter puts 60-80 it has to be green...
HTML:
<div class=r-summary>
<span id=score>
<?php the_field('score'); ?> */HERE GOES THE NUMBER WITH THE SCORE
</span>
</div>
More From » jquery