WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Changing font type and size on a particular page only (4 posts)

  1. monicaterhuurne
    Member
    Posted 2 years ago #

    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

  2. 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>
  3. monicaterhuurne
    Member
    Posted 2 years ago #

    Awesome, I got it!!

    Thanks so much for your help :)

  4. Absolutely :) Glad to help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags