Archived topic
Archive query loop hiding category page description
3 replies · Started by Kristen on February 22, 2023
Hi,
I have been trying to use the query loop element to change the look of my archives but when I publish the changes the title and description on my category pages disappears.
I want to have the title, description and another hook element that I am putting in to be different for each category page (reader favorites) and then the blog roll of archives. This all shows fine when the generate press query loop element is unpublished but when I publish it this bit can't be seen.
I set the loop element to 'entire site' 'all archives'
Any ideas what I'm doing wrong here?
Thanks!
Kristen
Hi there,
when you use a Loop Element, it replaces the entire archive template.
So you can create a separate page hero element for your archives to display that content after_header
Or you can just include it in the Loop Element:
Edit your Loop Template.
And before your Query Loop add a Container Block.
Inside that you can a Headline Block for the Title, and a GP Dynamic Content block to display the description.
Likewise you can add any GB Dynamic data for displaying custom fields if applicable
Sorry I am still a bit confused. I thought there was a way to change the look of archives in general so that no matter which category page you were on the blog role of archives style would be the same?
But if I am using the solution above I would need to add the loop and styling and container block with category intro to each seperate category page - is that what you mean?
I would need to add the loop and styling and container block with category intro to each seperate category page – is that what you mean?
The loop template is a dynamic template, in another word, the titles, and post metas etc. are pulled dynamically.
You can use the same loop template for all category archives, the headline block can dynamically pull the category name by activating its dynamic data options.