What are the different ways to customize content inside a post (custom attributes and such)

So far I’m aware of two way to do it:

  1. <span data-theme-custom>some text</span>

    CSS:

    [data-theme-custom] {
        color: pink;
    }
    
  2. [wrap="indent"]some text[/wrap]
    It will create either a div or a span (if there is other content on the same line), containing the following attributes: class="d-wrap" and data-wrap="custom"

    CSS

     [data-wrap="custom"] {
         color: pink;
     }
    

Are there other ways to customize some chosen content in a post I’m not aware of?
Also, is there a way to add a custom class to an element? Couldn’t find anything in the search. I guess this is not possible?

1 Like