Support » Themes and Templates » Twenty Eleven child theme: can't change content font name

  • Resolved orpheus_emerges

    (@orpheus_emerges)


    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try
    .entry-content p {font-family:serif;}

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

    Thread Starter orpheus_emerges

    (@orpheus_emerges)

    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/

    Try:

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

    (@orpheus_emerges)

    .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.

    Thread Starter orpheus_emerges

    (@orpheus_emerges)

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Twenty Eleven child theme: can't change content font name’ is closed to new replies.