Adding class to image adds class to tag wrapping image?
-
Maybe a basic question that has already been answered, however, I noticed the other day when I started trying to use Gutenberg that if I inserted an image block and added an “additional class” to that image (in my case: lazyload – as my current theme isn’t fully Gutenberg compatible yet, so I manually declared the class), it didn’t add it to the image tag, it added it to the block tag? Is there any way to specify a class on the image itself, as opposed to the block?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding class to image adds class to tag wrapping image?’ is closed to new replies.