- This topic has 5 replies, 3 voices, and was last updated 3 months, 3 weeks ago by
Leo.
-
AuthorPosts
-
September 24, 2020 at 10:24 pm #1457931
Anne
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 #1458199David
StaffCustomer 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 25, 2020 at 10:03 pm #1459389Anne
Great 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 #1459807David
StaffCustomer SupportMaybe this snippet Tom provides will help removing duplicates:
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 28, 2020 at 12:14 pm #1462755Anne
Thanks 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 #1462757Leo
StaffCustomer 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.