[Support request] How to attribute different font colors to words

Home Forums Support [Support request] How to attribute different font colors to words

Home Forums Support How to attribute different font colors to words

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #301421
    muralidharan

    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

    #301550
    Leo
    Staff
    Customer Support

    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.

    #301590
    Tom
    Lead Developer
    Lead Developer
    #301874
    muralidharan

    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

    #302057
    Leo
    Staff
    Customer Support

    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;
    }
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.