Page 1 of 1

How to color featured module in different color

Posted: Sun Jan 10, 2016 4:47 pm
by fokz8
Hey there. I have 8 products in my featured module that are showing on my webstore. I would like to color the "price" section of those products. 4 of them would have green color, and 4 of them would have kinda brown color.

It is easy to color all of 8 with the same color, because the php code does that for you. But how can you color them with different, given the code? How do you have to change to code, so that it would have different colors.

To see what i want, see the picture below.

Image

Any input will be appreciated!

Thank you guys!

Re: How to color featured module in different color

Posted: Sun Jan 10, 2016 10:52 pm
by viethemes
Could you provide your site URL, so we can take a look at it closer?

Re: How to color featured module in different color

Posted: Sun Jan 10, 2016 11:33 pm
by fokz8
viethemes wrote:Could you provide your site URL, so we can take a look at it closer?
i will send it via PM.

Re: How to color featured module in different color

Posted: Mon Jan 11, 2016 10:18 pm
by David.Feldman
Without seeing the site code, I can only guess, but most likely you could either edit the PHP code in question to add a unique identifier (a class) for each box an use those to target CSS.

Or you could probably add jQuery code via your theme to target those boxes. Again, this depends on the HTML of your site, but most likely it is possible.