- This topic has 7 replies, 2 voices, and was last updated 3 years, 3 months ago by Ying.
-
AuthorPosts
-
January 21, 2021 at 9:54 am #1628174Dave
I would like my category pages to look different.
I have included a link to the example I am looking for.
I understand how to get the header part using Elements but I am not sure how to generate the page content and layout.
Any help would be appreciated.Cheers,
Dave
January 21, 2021 at 11:01 am #1628256YingStaffCustomer SupportHi Dave,
Actually the default Category Archive pages are already very close to the layout you are seeking for. In this case, I don’t think a static category page is needed.
You can set the layout at Customizing > Layout > Blog, under the archive tab.
Let me know π
January 21, 2021 at 11:06 am #1628260DaveHi Ying,
I have tried this but I don’t know how to get the sidebar not to show on just the archive pages and how do I adjust the styling and spacing of the posts. If you look at the page I have put in the private section, you can see that the post title, images, and meta don’t line up.
Any suggestions?Cheers,
Dave
January 21, 2021 at 12:56 pm #1628410YingStaffCustomer SupportHi Dave,
how to get the sidebar not to show on just the archive pages
You could use a layout element to achieve this:
https://docs.generatepress.com/article/layout-element-overview/Choose Content(no sidebar) in Sidebar tab, choose All archives or the specific archives you don’t want sidebar to show in Display rules.
how do I adjust the styling and spacing of the posts
This part of your category archive is from WP Show Posts, not the default posts. So you’ll have to go to WP show posts to adjust the layout.
https://www.screencast.com/t/3dNIPNrLfuxThe rest of the posts, you can adjust layout at Customizer > Layout > Blog > Archives. If there’s specific padding/margin you’d like to adjust, we can help with CSS later when you have your structure built.
Let me know π
January 21, 2021 at 1:03 pm #1628421DaveActually, you just caught me with a test with WPSP. That didn’t work as it still shows the archives. I have taken the test away now and still need to style it with CSS as it is now.
Cheers,
Dave
January 21, 2021 at 1:08 pm #1628428YingStaffCustomer SupportAre you trying to make the posts into columns? If so, have you tried this?
https://www.screencast.com/t/YHrhwyX8January 21, 2021 at 1:24 pm #1628450DaveThat is the way that I have it set right now. I would like to look like the original example I sent π
Cheers,
Dave
January 21, 2021 at 4:01 pm #1628567YingStaffCustomer SupportI took a screen shot for youhttps://www.screencast.com/t/H1tZnEn0
For part A, you can achieve it by adding a
generate_inside_container
hook.For part B, to control the color of title: go to Customizing > Colors > Content >Archive Content Title.
To control the fonts go to Customizing > Typography > Headings > H2.For part C, adjust the numbers as you prefer π
/*remove the default padding*/ .archive .generate-columns { padding-left: 0px; } /*control padding*/ .archive .post .inside-article { padding-right: 20px; padding-top: 50px; padding-left: 20px; padding-bottom: 20px; }
For part D, if you are using 3 columns, each post width set to 33%, we can use this CSS to reduce the width of the post:
.generate-columns.grid-33, .grid-sizer.grid-33 { width: 32%; /*the smaller the number the bigger the gap*/ }
If you want to change the bg color, go to Customizer > color > Content > Background.
I did a quick simulation, looks like this:https://www.screencast.com/t/WRIBunNx
Let me know π -
AuthorPosts
- You must be logged in to reply to this topic.