Archived topic
How to attribute different font colors to words
4 replies · Started by muralidharan on April 4, 2017
Hi
Does anyone know the way around to get different color to words in a sentence. Like Black, blue, black and so on. In a paragraph , H1 , H2
thanks
murali
Hi there,
I've basically answered it here:
https://generatepress.com/forums/topic/different-font-colors-in-paras-and-headlines/#post-301123
Let me know if you need more info.
Something like this might help: https://en-ca.wordpress.org/plugins/kt-tinymce-color-grid/
thanks leo and tom,
I do find that you can tweek the colors using the color palette in paragraphs only, what about increasing the font size in paragraph that function does not exist?
also can we do similar thing in Headline, or page title?
best
Couple ways to accomplish this:
- You can style straight into HTML. This page gives lots of good examples:
https://www.w3schools.com/html/html_styles.asp
- If you don't want to do this repetitively, then you can wrap it like this:
<span class="special-color">My Special Color Text</span>
Then add CSS:
.special-color {
color: #000000;
font-size: 20px;
}