Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1031433
    lisacole1
    Participant

    Hi
    On http://www.kentbabymatters.org/who-to-speak-to/
    I’d like the top line of the post, which is a H1 to line up with the top of the sidebar.

    I’ve tried

    h1, .h1{
    margin-top: 0px;
    font-size:32px;
    }

    but it’s not making any difference. There is no space in the page itself.
    any ideas appreciated, it would be great if we had easier control over the automatic spacing.

    #1031650
    lisacole1
    Participant

    I’ve taken off that code because it was messing up the front page, so I just need some way of making the top of the h1 on posts and pages line up with the sidebar

    #1031922
    Joao
    Moderator

    Hi There,

    Can you try:

    
    .single-post .entry-content h1, .single-post .entry-content .h1 {
    margin-top: 0px;
    font-size:32px;
    }

    Hope that helps,

    Joao

    #1033476
    lisacole1
    Participant

    Thank you – it’s not just the h1 though – have a look at this page

    Promotional Resources

    #1033519
    lisacole1
    Participant

    Sorry but the H1 still doesn’t line up with the sidebar either

    Who do I need to speak to?

    If I use inspect element I can see that the div.entry.wrap is taking up that space but I don’t know how to correct it

    #1033521
    Rue Nel
    Moderator

    Hello There,

    To resolve this issue, please also add the following css code in the customizer, Appearance > Customize > Custom > CSS

    .single-post .entry-content h1, 
    .single-post .entry-content .h1,
    .page .entry-content h1, 
    .page .entry-content .h1 {
        margin-top: 0;
    }
    
    .single-post .entry-content.content,
    .page .entry-content.content {
        margin-top: 0;
    }
    
    .single-post .entry-wrap,
    .page .entry-wrap {
        padding-top: 0;
    }

    http://prntscr.com/be64xh
    http://prntscr.com/be65xs

    Hope this helps.

    #1035438
    lisacole1
    Participant

    better, but still happening on h2

    Professional Resources

    #1035549
    Paul R
    Moderator

    Hi Lisa,

    Please add mtn class to all your first headline

    eg.

    
    <h2 class="mtn">These resources are provided for Breastfeeding Specialists and Health Professionals</h2>
    

    mtn means Margin Top None.

    Thanks

    #1035563
    lisacole1
    Participant

    Hi. I really need this so the client can just add pages and posts, I can’t expect them to do any coding. Is there another way please.

    #1035747
    Paul R
    Moderator

    Hi,

    You can add this under Custom > CSS in the Customizer.

    
    .single-post .entry-content h2, 
    .single-post .entry-content .h2,
    .page .entry-content h2, 
    .page .entry-content .h2 {
        margin-top: 0;
    }
    

    Hope that helps.

    #1039105
    lisacole1
    Participant

    totally perfect! thank you so much!

    #1039111
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1031433 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>