[Support request] Best way to customize category archive pages?

Home Forums Support Best way to customize category archive pages?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #1458199
    David
    Staff
    Customer Support

    Hi 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.

    #1459389
    Anne

    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?

    #1459807
    David
    Staff
    Customer Support
    #1462755
    Anne

    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?

    #1462757
    Leo
    Staff
    Customer Support

    That 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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.