I want to add a class on cck image field output img tag, not on field wrapper div. How can i do it?
1 Answer
I think you should use Field Formatter CSS Class module for this. Module page says :
The Field formatter CSS class module allows you to set any text/list/option/taxonomy field to render as CSS class on the node. This enables the node author to select predefined CSS styling per node.
-
1I tried this but it adds a class on image wrapper div not on img tag.– SwatiCommented Mar 20, 2014 at 6:18