Vote up!
Vote down!

Product Display page template css class repeating

In my product detail page there are about 20 fields, problem is the designed template is much more complex. according to the design I must have each field class to be unique, but as default all the 20 field classes are same (field-label).

Do I need to write a module for this ?

Asked by: thilina570
on September 20, 2012

1 Answer

Vote up!
Vote down!

I recommend using drupal.org/project/ds which will give you the ability to add css class names that are unique to each field.

But also note that you can use inheritance in CSS to get unique results. For instance, you're looking at the label class, perhaps you could look at the div parent and see something like:

.field-text-01 .label {}


Josh Miller
Answer by: Josh Miller
Posted: Nov 16, 2012