Where to set template for category?

Hello,

I am editing a Bricks website, especially this page: Blog – Pamax

When clicking the category tag, for example “elektriciteit”, you will be redirected to Elektriciteit – Pamax but this page is in a whole other design as the main website.
My question is how to set the category template that is linked to that last url?

Thanks in advance,
Tom

2 Likes

Hello Tom. Create a Bricks template of type ‘Archive’ for all category archive pages. Edit it with Bricks and apply a template condition to make it apply to all categories. Then add elements inside like a Heading whose text is set to {term_name} and add a Posts element or set up a query loop. Leave the query settings at its defaults.

I recorded this quick screencast for you:

1 Like

Thank you, this works

Thanks for this from me as well! I was trying to set a condition for PostType first, then category, and it wasn’t working.

So I followed this instead, and was able to select the custom taxonomy for my CPT first, then also added a condition for PostType.

Thanks Sridhar,

This does not seem to apply to custom post types; nor does it show how to use a query loop instead of the Posts widget.

Perhaps you (or someone else) could show how to do that as well?

This post also wants to know btw: Custom Post Types' category archive template

Thanks :slight_smile:

1 Like
1 Like

Thanks, Sridhar for that link to that section of the setup guide. I had it set up differently, also including Taxonomy Query settings in the Query Loop, which WORKED until recently. I think perhaps a recent change in Bricks or WordPress may have caused that to no longer work. Once I cleared out those Taxonomy Query settings in the Query Loop, my template worked again.