Post by fokz8 » Sun Jan 10, 2016 4:47 pm

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!

New member

Posts

Joined
Sun Jul 26, 2015 8:35 pm

Post by viethemes » Sun Jan 10, 2016 10:52 pm

Could you provide your site URL, so we can take a look at it closer?

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by fokz8 » Sun Jan 10, 2016 11:33 pm

viethemes wrote:Could you provide your site URL, so we can take a look at it closer?
i will send it via PM.

New member

Posts

Joined
Sun Jul 26, 2015 8:35 pm

Post by David.Feldman » Mon Jan 11, 2016 10:18 pm

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.

OpenCartHosting.com -- Experts at OpenCart Hosting


New member

Posts

Joined
Fri Nov 27, 2015 12:14 am
Who is online

Users browsing this forum: No registered users and 10 guests