Archived topic
Need to add space between meta and content on Single Post Pages
5 replies · Started by Michelle on October 13, 2021
My title and content on Single Post Pages do not have padding between them. Also, my featured image and content do not have padding between them. How do I add padding?
Hi there,
Can you try the content separator option in the customizer first?
https://docs.generatepress.com/article/content-separator/
Let me know :)
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. :)
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