Assign Custom Layouts to Blog Archive Pages, Different from Blog Index Page

Hello,

I have create two custom layouts for my blog index pages:

One for the main blog index page:

And one for the category archive pages:

I’ve done something wrong with the loopers and assignments for the category archives and I can’t figure out what. So here are my questions:

  1. How do I assign a one layout to the blog index and the other layout to all category archives (including new ones that may be created in the future)? Is there a way to dynamically assign that without having to list out each category?

  2. My content shows on the backend when I’m in the builder for the category archive pages, but when I look on the front end, there is no content on the pages. What am I doing incorrectly?

Hi @jreaniswander,

Thanks for reaching out.
Assign a different layout for the Blog Index page and Category Archive page you need to add the condition Blog is being viewed for Blog Page and All Archive for Category page, but need to set the lower priority for the All Archive layout as shown in the given screenshot.

For the category page is not showing the content in the frontend, please check if that category has any post in it. The backend shows the general output where it list all the posts.

Hope it helps.
Thanks

@tristup - that worked a charm for getting those layouts to display correctly. Thank you!

I am still having issues getting the post content to display – and I know there are posts in those categories.

For example, Fireside Chats has 14 posts: https://www.loom.com/i/799b05c87a6141b095e9eb08179b10a1
but is not displaying anything on the page: https://weascend.co/category/fireside-chats
So I know I’ve done something incorrectly.

Could having posts in more than one category or parent/child categories be an issue?

I think I found the answer – I had a Looper Provider enabled that didn’t need to be there. Disabling the looper provider allowed the default query for the archive page to render the posts properly. Thanks!

Hi @jreaniswander,

We’re glad that you’re able to figure it out! If you have any other concerns or clarification regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.