WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] changing font size of all post titles (10 posts)

  1. nvolkert
    Member
    Posted 2 years ago #

    I want to change the font size of my posts. I used firebug and found the code to change

    .singular .entry-title {
        color: #000000;
        font-size: 36px;
        font-weight: bold;
        line-height: 48px;
    }

    however, when I add this to my twenty eleven child theme it does not change it. Please help

  2. Gary Darling
    Member
    Posted 2 years ago #

    Did you refresh your browser to empty the cache? If that doesn't fix it can you post a link to your site?

  3. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    What do you mean "add this" -- you just need to change the existing CSS code. But there also may be another CSS declaration that is higher specificity -- in which case it will override this one. If you post a link to your page and specifically describe what you want changed, it will be easier for someone to help you.

  4. nvolkert
    Member
    Posted 2 years ago #

    of course I refreshed my browser. And I haven't posted a link to my site because it's not live it's in draft version. I don't know if you'll be able to view it but here is the link:
    http://www.milkallergyguide.com/?p=616&preview=true

    And you never change the theme code you always add and change the CHILD theme code which overwrites main theme.

    Does anyone else have suggestions?

  5. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    That IS the correct code to edit -- so something is going on with your site relative to the CSS -- do you have the child theme set up right and CSS files in the right places?

    Try adding h1 to the above CSS code because that's what you really want to change.

    You also have a lot of CSS errors on that page so you might look at those too...

  6. nvolkert
    Member
    Posted 2 years ago #

    Well all other code I've changed in child theme has worked so I believe it's set up correctly.

    where do I add h1 exactly?

    Can you explain these errors?

  7. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try validating your child theme's CSS. It has at least 1 error in it.
    http://codex.wordpress.org/Validating_a_Website

  8. nvolkert
    Member
    Posted 2 years ago #

    Am I correct in that validating a website is asking someone to look over your code?

    Is this what you suggest for fixing the size of my font on my post?

  9. Gary Darling
    Member
    Posted 2 years ago #

    No, you are not. Validation is an automated service that looks for errors and gives you advice on how to find and correct them. Google css validation.

    Take a look at line 36 of your child theme css and see if you don't find something missing. Fix that and the rest of your style sheet will load, which, absent any more errors, will fix your font.

    Hint: it looks like a semicolon.

  10. nvolkert
    Member
    Posted 2 years ago #

    thanks.. I fixed that line 36 and all other changes fixed correctly

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.