Site logo

Archived topic

Need to add space between meta and content on Single Post Pages

5 replies · Started by Michelle on October 13, 2021

Viewing posts 1–6 of 6

I am using Advanced Custom Fields to generate an introductory paragraph before the featured image and post. Per Elvin, I hooked a paragraph block through a Block element to "generate_after_entry_header." Now I enter dynamic content for my introductory paragraph into a box in the post dashboard and it shows above the featured image, beneath the title and meta. I do not think I can add a separator in it.

I did try to add space in that box by pressing <enter>. I also tried adding <p> </p> to achieve spacing, but these things did not do anything to change it. (The introductory paragraph starts directly beneath the Title and Meta with no space between.
Looks weird.)

I am hoping there is a workaround. :)

https://www.reachingmyworld.com/testing-the-intro-post/

Hi Michelle,

On this CSS I've provided from the other post:

body.single-post .inside-article > *:not(.author-box) {
    max-width: 900px;
    margin: 0 auto;
}

body.single-post .inside-article > .author-box {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

Modify it to this:

body.single-post .inside-article > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

Perfect! :)

Nice one. Glad it fits your preference. :D

This archived topic is closed to new replies.