Default theme discards CSS class for img tags. What now?

Hi @jbrains :slight_smile:

Discourse only accepts an array of allowed HTML tags and attributes. Adding an arbitrary class to an element isn’t possible without creating a plugin.

However, if you want to customize an image inside your post, you can put it inside a [wrap] tag or something similar.

Have a look at Customize posts' contents with your own styles

6 Likes