WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty Eleven child theme: can't change content font name (6 posts)

  1. orpheus_emerges
    Member
    Posted 2 years ago #

    I can change the font name/family under the
    /* Global
    body, input, textarea {
    ...
    }

    and that will change the font used for all of the text.

    However, I only want to change the content text to a serif.
    I want all of the headers and post and comment text to stay
    with the default "Helvetica Neue", Helvetica, Arial, sans-serif;

    Firebug tells me that the <p> text I want to change is under this
    code:
    <div class="entry-content">

    However, I've tried many changes, including under p{ }, and I can change the line height and other font properties that way, but not the actual font that is used.

    How can I change just the context text's font.name?
    I'm using a Twenty Eleven child theme with content on right and a left side bar menu.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Try
    .entry-content p {font-family:serif;}

    If that doesn't work, please post a site url.

  3. orpheus_emerges
    Member
    Posted 2 years ago #

    Esmi,

    Thank you.

    .entry-content p {
            font-family:serif;
    }

    That worked, but I can't seem to effect more than just the change to general serif.

    I added this and it is not changing in the font size. And I'm not sure that that is Georgia showing:

    .entry-content p {
            font-family:serif;
            font: 20px Georgia, "Times New Roman," "Bitstream Charter", serif;
    }

    Then I removed the first line, and the text reverted to sans:

    .entry-content p {
    /*        font-family:serif; */
            font: 20px Georgia, "Times New Roman," "Bitstream Charter", serif;
    }

    So, working with .entry-content p{} are there other properties I should be able to change?

    http://www.barrymckenna.com/

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Try:

    .entry-content p {
            font-family:Georgia, "Times New Roman," "Bitstream Charter", serif;
            font-size: 20px
    }
  5. orpheus_emerges
    Member
    Posted 2 years ago #

    .entry-content p {
    font-family:Georgia, "Times New Roman," "Bitstream Charter", serif;
    font-size: 20px
    }

    That changed the font size, but the font is still sans serif.

  6. orpheus_emerges
    Member
    Posted 2 years ago #

    Esmi,

    Thank you for your help. All is perfect now.

    I had made a mistake: I had a comma inside "Times Roman," instead of outside...as is also SELF-EVIDENT from my last post above!

Topic Closed

This topic has been closed to new replies.

About this Topic