- This topic has 13 replies, 6 voices, and was last updated 2 years, 8 months ago by Leo.
-
AuthorPosts
-
September 24, 2020 at 10:24 pm #1457931Anne
I have a couple questions for customizing the category archive pages
1. If I wanted to add a header to each category archive, would the best route be to create a block header for each one?
2. Is there a way I can edit the layout of the category blog posts from within the theme? Say if I wanted to make it a 2 column layout instead of 1 column? And is there a master option for this so I can change ‘all’ category archive pages to have the same layout from one setting instead of doing it one by one?
Thanks
September 25, 2020 at 3:07 am #1458199DavidStaffCustomer SupportHi there,
1. Yes, thats correct you can create a Block Element for each of your Category archives.
Or you can use a Header Element, if you’re happy with the same color/image background on all – and the only difference being the title. Then you could could create a single Header Element and add the{{post_title}}
template tag to display the title dynamically.2. Yes, you would need to use the
option_generate_blog_settings
filter:https://docs.generatepress.com/article/option_generate_blog_settings/
If you want a hand writing the snippet let us know.
September 25, 2020 at 10:03 pm #1459389AnneGreat thanks for the info! I ended up following one of your videos on customizing Layout > Blog and did it that way.
I have another question, but this is regarding wp show posts:
Let’s say I have 2 different categories displayed on the homepage but some posts share the same category – is there a way to prevent the posts with multiple categories from displaying twice?
September 26, 2020 at 6:41 am #1459807DavidStaffCustomer SupportMaybe this snippet Tom provides will help removing duplicates:
September 28, 2020 at 12:14 pm #1462755AnneThanks that looks like it will be helpful once I understand how to implement that code of his. Im basically not sure how to apply that code from that thread.
Would you be able to explain how to implement that or should i reach out to wpshowposts and maybe reply to that thread itself?
September 28, 2020 at 12:15 pm #1462757LeoStaffCustomer SupportThat code can be added with one of these methods:
Adding PHP: https://docs.generatepress.com/article/adding-php/The Code Snippets plugin is the easiest if you aren’t using a child theme already.
May 6, 2021 at 12:29 am #1766814NemanjaHey there,
I want to show my first 4 category archive posts like in the grid 50% – 50%. In first container there is the latest post and in another there are three posts stacked on top of each other. I tried to add it with a block-hook element and with dynamic content but it shows only one post four times. I also wish to display a post title not category title.Can you please help me achieve this.
Thank you!
May 6, 2021 at 3:21 am #1767011DavidStaffCustomer SupportHi there,
thats not possible within the theme templates.
If you want to raise a new topic i will explain someways of how it could be done.May 6, 2021 at 5:30 am #1767191NemanjaHi David,
I raised a new topic called ‘Custom category archive page’.Best regards.
May 6, 2021 at 7:13 am #1767597DavidStaffCustomer SupportThanks – replied 🙂
August 8, 2021 at 9:52 am #1888308TrầnI have a question maybe relate with this post:
How can I creat a category of Archive for my website https://kimquy.com.vn/blog/ like that webste: https://www.ultimatebeaver.com/modules/advanced-posts/example-4/
It displays some category of blog with a beautifull style
All Creative Fashion Outdoor PortraitsAugust 8, 2021 at 11:51 am #1888375YingStaffCustomer SupportHi there,
You should be able to create a content template for the blog posts using a block element – content template:
https://docs.generatepress.com/article/block-element-content-template/But if you want to have the tabs to filter categories without redirecting to another category archive page, there’ll be some custom development required.
August 8, 2021 at 5:57 pm #1888534TrầnThank you but I don’t need to custom display for blogs in Archive Blog.
I need add a category for Archive Pages: List of all category blog.
How can I do?August 8, 2021 at 6:44 pm #1888554LeoStaffCustomer SupportCan you open a new topic for your question?
Thanks!
-
AuthorPosts
- The topic ‘Best way to customize category archive pages?’ is closed to new replies.