WordPress.org

Support

Support » Themes and Templates » [Resolved] Edits to CSS for font size not showing up

[Resolved] Edits to CSS for font size not showing up

  • 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    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

    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!

    WPyogi

    @wpyogi

    Forum Moderator

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

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

    WPyogi

    @wpyogi

    Forum Moderator

    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 :)!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Edits to CSS for font size not showing up’ is closed to new replies.
Skip to toolbar