Comments Livia started the conversation3 days ago on Friday at 3:01pmHI there.I would like to add 50px spacing above all H2 headers visible on all POSTS and PAGES. like so: h2 { margin-top: 50px;}However when I do this in the custom CSS it adds the spacing on the Blog Post Grid (which I do not want)Is this possible please?Livia replied3 days ago on Friday at 3:06pmactually would this be correct? h2:not(.penci_grid_title):not(.item h2):not(.item-masonry h2) { margin-top: 50px;} 3,123PenciDesign replied3 days ago on Friday at 3:15pmHi, Yes, you can add 50px spacing above all H2 headings on posts and pages with the following custom CSS: .entry-content h2 { margin-top: 50px; } Please add it via Appearance → Customize → Custom CSS. Regards,PenciDesign.1 LikeLivia replied3 days ago on Friday at 3:17pmperfect, much cleaner, thank you! Sign in to reply ...
HI there.
I would like to add 50px spacing above all H2 headers visible on all POSTS and PAGES. like so:
h2 { margin-top: 50px;}
However when I do this in the custom CSS it adds the spacing on the Blog Post Grid (which I do not want)
Is this possible please?
actually would this be correct?
h2:not(.penci_grid_title):not(.item h2):not(.item-masonry h2) {margin-top: 50px;
}
Hi,
Yes, you can add 50px spacing above all H2 headings on posts and pages with the following custom CSS:
.entry-content h2 { margin-top: 50px; }Please add it via Appearance → Customize → Custom CSS.
Regards,
PenciDesign.
perfect, much cleaner, thank you!