1

I am trying to add a class name to a product attribute on my site so that I can change the colour of one of the attributes to green. I am able to to do this by simply using the class name "Last" which is fine at the moment.

However I have also customised the attributes so that that when the product attribute is empty it does not display on the frontend. This means that my styling using the class name "last" to add the green text is no longer working correctly because it means if my attribute is empty this green styling is added to the next attribute in the list which is not what I want.

Any advise is appreciated.

thanks in advance!

4
  • Can you supply with a link? :) Commented Feb 5, 2016 at 12:24
  • have you created product attribute? If created then use which page ? can you explain in details??
    – Abdul
    Commented Feb 5, 2016 at 13:03
  • Yes here is a link therosegallery.co.uk/artists/debbie-boon/… I am trying to make the text "Online Exclusive" green, I cannot use the class name "last" because sometimes this attribute is not always on the page so this would make "Mounted Size" green instead. Commented Feb 5, 2016 at 13:27
  • I, too, would like an answer to this question! Commented Aug 16, 2016 at 2:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.