Hello,
If the aim is to only display, I see 2 solutions the better one will be linked with your needs.
1°) If you have to display ALWAYS same colors for several products (or all), you can add divs with specifics color class, something like this :
<div class="red color_icon"></div>
<div class="yellow color_icon"></div>
<div class="green color_icon"></div>
<div class="orange color_icon"></div>
See
this tutorial
to edit override view files.
And on your
front end css, add some Css command to define shape, size, and color of your elements, like :
div.icon {
height: 20px;
width: 20 px;
border-radius: 8px;
}
div.red {
background-color: red;
}
See
this tutorials
, to understand how to custom your front end Css.
And for repeat css command for
each div colors.
2°) You need to have for
each product,
different color display, you can keep the first idea
BUT you add this directly in
product description WITH inline css.
Hope this will help you to achieved what you needs.
Regards