Image block

Hi all,

I want to add a custom class to an image block and have successfully added the class through the page_theme.php file, but Concrete5 adds my class to a surrounding div instead of to the image. Is there any way to add the class directly to the image?

I hope someone can help!

Hi there,

Going through Concrete itself adding a class to the outer div is as close as its going to get, you are probably best off making a custom template here’s a video I found on YT Concrete5: Adding a Custom Block Template - YouTube they are using an older version of ConcreteCMS but the principle is the same.

Is there a specific reason why a class on a div will not work for you? as you can target the img tag from the outer div class in both CSS and JS