Site logo

Archived topic

Extra spacing before headings after update

8 replies · Started by Denise on December 10, 2022

Viewing posts 1–9 of 9

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!

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

Link:

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 ?

Hi David!

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

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.

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

No problem :)

Please go through the proper debugging steps first.

Thank you!

This archived topic is closed to new replies.