Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to add class to image, not to its wrapper? Like <img class="someclass">
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedYes, but...
Due to the field token situation in Drupal 7 it's not as easy as it could be. If you are after a non-coding approach, see #1511830: Fix Token engine
Otherwise, you could make a PHP formatter something like: