WordPress.org

Ready to get started?Download WordPress

Forums

Need to change the font and line spacing of post content (7 posts)

  1. kentsanders
    Member
    Posted 1 year ago #

    I have searched Google and the support forums for hours but cannot figure out how to change the font and line spacing of the post content. I am using the Standard Theme. The current font is Arial, and the lines are very close together. I know I must edit the CSS, and have tried to edit various parts of the post section.

    I know I need to enter something like this:
    font-family:Georgia, "Times New Roman", Sans-Serif

    However, where do I put this line of code so that it changes all the text within a post?

    How can I also change the line spacing of a post?

    Thanks for any help!

    My blog is artistssuitcase.com.

  2. potentweb
    Member
    Posted 1 year ago #

    Look for:

    .post p {
    font-size: 14px;
    font-family: Georgia, "Times New Roman", Arial, Sans-Serif;
    margin-bottom: 20px;
    line-height: 25px;
    }
  3. kentsanders
    Member
    Posted 1 year ago #

    Got it, thanks! That works perfectly, except that the line spacing doesn't take effect with the numbered list in the post. Any suggestion on how I can make the same spacing apply to any numbered or bulleted lists?

  4. potentweb
    Member
    Posted 1 year ago #

    Can you add some post to your site so I can take a look?

  5. kentsanders
    Member
    Posted 1 year ago #

    Yes, sorry - it's up now.

  6. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Try adding the CSS selectors for the list elements.
    E.g

    .post p,
    .post ol li {
     font-size: 14px;
     font-family: Georgia, "Times New Roman", Arial, Sans-Serif;
     margin-bottom: 20px;
     line-height: 25px;
    }
  7. kentsanders
    Member
    Posted 1 year ago #

    That worked - thank you!!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags