WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Edits to CSS for font size not showing up (6 posts)

  1. pcjc1999
    Member
    Posted 1 year ago #

    Trying to change the font size for the blog post titles - the site is http://climbingthefinancialmountain.com/

    There are blog posts, which have not been published yet, but here is what the code looks like for that section
    <header class="entry-header">
    <h1 class="entry-title">The Financial Boom</h1>

     
    <h3><p>Here is my subtitle</p></h3>
    </header><!-- .entry-header -->

    I have tried editing the above section in style.css for entry-header and the font size will not change from where it is at.

    The pages that are currently published on it are fine - I just need to change the actual blog posts' title font size.

    Here is what I have edited under 'main content and comment content'

    .entry-header .entry-title {
    font-size: 28px;
    font-size: 1.75rem;
    line-height: 1.8;
    font-weight: normal;
    }

    The font on the post title is definitely not 28px however.

    Any help on this would be greatly appreciated -

    Thanks!

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You should not be modifying theme files - especially in the default theme - your changes will be overwritten and lost when WP is updated and it's also crucial to have a clean copy of the default theme for troubleshooting purposes.

    You'll need to make a Child Theme for custom work -
    http://codex.wordpress.org/Child_Themes

  3. pcjc1999
    Member
    Posted 1 year ago #

    Oh wow, did not realize that.

    Ok, so create a simple Child Theme and then can I just insert this code

    .entry-header .entry-title {
    font-size: 28px;
    font-size: 1.75rem;
    line-height: 1.8;
    font-weight: normal;
    }

    or an even simpler h1 font code?

    Thanks - this is VERY helpful!

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Twenty twelve is a bit tricky because it's mobile first - so changes for regular screens need to be inside a media query - look at line 1350 on the style.css file to see how those work.

    And yes, you definitely want to make a child theme - you'll need to move any changes you made to the child theme and redo options and settings in the child theme too - they won't transfer over. I know that seems like a pain now, but you REALLY don't want to modify the default theme :).

  5. pcjc1999
    Member
    Posted 1 year ago #

    Ok, thank you for the help - so glad I asked!

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You're welcome - me too - so much better to discover it now than down the road when you have a lot more to redo or worse :)!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags