Apply custom CSS to selected text
-
I would like to be able to define some css to be applied to text I select within a block.
For example, whenever I provide a link that opens in a new tab / window I always add the text: (opens in a new tab / window)
I’d like to be able to select that text and then add a pre-defined css class from my Additional CSS in the Customizer. To be clear, I don’t want to apply it to the whole block, just to the selected text.
I know I can use the edit html option but I wan’t a quicker way.
Being able to quickly select some text and then apply a css class would be so much easier than going in via html.
Is it possible?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Apply custom CSS to selected text’ is closed to new replies.