Support » Themes and Templates » Changing font type and size on a particular page only

  • Resolved monicaterhuurne

    (@monicaterhuurne)


    Hello,

    I have quote on my home page – I would like to change the font of this quote and the size. I only want to change this quote though, not the font on other posts/pages. I would appreciate any help on which code I need to edit in order to do this.

    Many thanks,
    Monica

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Monica,

    You would need to add a custom class to your stylesheet (style.css) file.

    Something like this:

    p.quote {
       font: Arial;
       font-size:24px;
    }

    You can, of course, change these to your liking.

    Then, on your post… wrap whatever you want to use the font with the <p class=""> tag… like this:

    <p class="quote">This is my text</p>

    Awesome, I got it!!

    Thanks so much for your help 🙂

    Absolutely 🙂 Glad to help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing font type and size on a particular page only’ is closed to new replies.