Site logo

[Resolved] Extra spacing before headings after update

Home Forums Support [Resolved] Extra spacing before headings after update

Home Forums Support Extra spacing before headings after update

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2457278
    Denise

    Hi,

    I had an update of the theme recently.
    No new plugings or any other major change.

    On the new posts, I’m noticing that once published, they have an extra spacing before some of the headings (not all of them).
    Not sure what’s causing this.

    Would you mind taking a look?

    Thanks!

    #2457409
    Leo
    Staff
    Customer Support

    Hi there,

    Are you referring to this?
    https://www.screencast.com/t/ImhRBqMVIqq

    If so that’s added with a WP block spacer – definitely not an issue with the updates.

    #2457773
    Denise

    Hi Leo!
    No, look into this:Spacing

    This is what I see on the editor, all headings normally spaced.
    But when publish the post, somehow some of the headings the get this extra top margin.

    I’ve “corrected” a few by zeroing the top margin.

    But this is not suppose to happen, right?

    If my CSS were messed up, then all headings will be afected. But is not the case.

    Thanks!!

    #2457774
    Denise

    Link:

    #2458034
    David
    Staff
    Customer Support

    Hi there,

    in your Customizer > Additional CSS you have the following:

    /*extra space*/
    
        p + h3 {
            margin-top: 3.5em;
        }
    
        p + h2 {
            margin-top: 3.5em;
        }
    
        p + h4 {
            margin-top: 3.5em;
        }
    
        p + h5 {
            margin-top: 3.5em;
        }
    
        p + h6 {
            margin-top: 3.5em;
        }
    
        p + image {
            margin-top: 3em;
        }

    Which is adding top margin to various elements that display immediately after the P element tag.

    Are those the issue ?

    #2458117
    Denise

    Hi David!

    No, that is not the issue.
    Please take a look on the video below.
    Thanks for your help!

    #2458280
    Leo
    Staff
    Customer Support

    No, that is not the issue.

    Are you absolutely sure about that? It looks like the issue to me as well.

    Can you remove the CSS David pointed out temporarily?

    That’s a pretty odd CSS to add.

    This isn’t a theme issue so you might want to go through some proper debugging steps.

    #2459662
    Denise

    Weird!
    I have had that CSS for a long time, but maybe after the update something else changed.
    Anyway, I removed it and seems to be fine.

    Thanks for your help!!
    Denise

    #2459664
    Leo
    Staff
    Customer Support

    No problem 🙂

    Please go through the proper debugging steps first.

    Thank you!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.