Adding a CSS class to an image in Pro?

There doesn’t seem to be a way to do this. At best, you can use the “Customize” option and add classes there, but they’re added to a span that wraps the image, not the image itself. Is there a way to do this?

Hello @agorder,

Thanks for posting in!

If you are using the Image element, you can insert the custom class in the Customize tab of the image element settings.

The custom class will be applied to the <span> container of the image:

If you are applying a custom CSS code to the image, you can insert an inline element CSS instead or simply manage to apply the CSS using this example code:

.my-image img {
   /* some styling here */
}

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.