WordPress.org

Forums

Zeecorporate theme post font size (6 posts)

  1. Neil_123
    Member
    Posted 1 year ago #

    Hi

    Could someone please help to identify the code in zeecorporate theme CSS sytlesheet that should be amended to change blog post font size.

    Thanks!

  2. lettergrade
    Member
    Posted 1 year ago #

    The <p> tag should do it, or the following, if you don't want the text size to be applied outside of posts:

    .entry p {
        margin: 5px 0 15px;
    }

    Right now, the font-size is set in the .body property as 0.9em, but you could do this to enlarge it just in the blog posts:

    .entry p {
        margin: 5px 0 15px;
        font-size: 1.0em;
    }

    Were you only looking to change the body font size, or did you need to change header sizes as well?

    Also, something to think about: How are you changing your css? To protect your changes from being overwritten by future updates, I strongly recommend that you create a child theme or use a custom css editor plugin.

  3. Neil_123
    Member
    Posted 1 year ago #

    Thank you very much! I am quite new to WordPress and as such do not know anything about the <p> tag or child themes or custom CSS plugin.I shall read the links that you have provided to learn more.

    I am only looking to change the post body text font size. I did try your suggestion and it works. Only issue is that if I have bullet points in the text of the post, the bullets take on a different font size and I don't know why this happens or how to correct it. Any suggestion would be appreciated.

    Thank you once again!

  4. lettergrade
    Member
    Posted 1 year ago #

    Sure, no problem. Bullets are not body text, they're lists. That means they're created using the <ol>, <ul>, and <li> tags, and you need to edit the corresponding properties in css. Here's some information on that! CSS Lists

  5. Neil_123
    Member
    Posted 1 year ago #

    Thank you! Managed to sort it out after several tries.

  6. lettergrade
    Member
    Posted 1 year ago #

    Fantastic, glad it's working out.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.