Archived topic
Creating Posts Page
8 replies · Started by Nicole on December 2, 2021
Hello,
How can I make my posts category page look like this
meaning the layout with sections and also the posts themselves two or three to a row.
instead of just one post after the other on the page when you click on a category?
Thank you
Hi there,
1. the top two sections are static content, which you can use a Block element to add them after_header on an Archve page.
https://docs.generatepress.com/article/block-element-overview/
2. To set the columns of the Post loop, make sure the Blog Module is enabled in Appearance > GeneratePress then you can enable columns in Customizer > Layout > Blog:
https://docs.generatepress.com/article/blog-content-layout/
3. If you want to custom design the post cards then you can use a Block Element Content Template to design your own:
https://docs.generatepress.com/article/block-element-content-template/
Hello,
Ok, do I do all of these things on a new page or are all these things separately done?
I numbered the above steps to make this a little clearer.
They would all be done separately but #2 and #3 you can do just the once, and this will apply to your Blog and ALL your Post Archives including Categories and Tags.
#1 However it depends - if each category archive requires different content, then you may need to create a separate Block Element for each archive. Note that some of the content can be displayed dynamically such as displaying the archive description.
Hello,
I'm running into a few issues.
First there is a huge gap between the logo and menu and the rest of the content, how do I minimize it?
Second, I cannot seem to be able to write the title and excerpt together to have no break in the background color.
Thirdly, the posts are all on the left side and very spaced weirdly. How do I center them on the page and add the kind of padding or something that will help them show up like in the example site?
Thank you
Hi Nicole,
First there is a huge gap between the logo and menu and the rest of the content, how do I minimize it?
The page seems to have a Block element with a Container block hooked to it. This container block that's hook has 160px padding. Consider reducing it to reduce the gap.
Second, I cannot seem to be able to write the title and excerpt together to have no break in the background color.
Try placing both of them on a Container block and set the background color on the Container block instead of the text elements. :)
Thirdly, the posts are all on the left side and very spaced weirdly. How do I center them on the page and add the kind of padding or something that will help them show up like in the example site?
Create a Layout element that disables the right sidebar on Category archive pages. :)
On a Layout element, go to the sidebar tab and set it to "Content (no sidebars)". You then set the display rule location to "Post Category archives - all".
https://docs.generatepress.com/article/layout-element-overview/#sidebar
ok thank you, I figured out 2 and 3 but can't seem to figure out 1. Where do I find this container block and padding?
neveremind i figured it out thank you
No problem. Glad you got it sorted. :D