Archived topic
Query Loop? Or something else for my homepage
5 replies · Started by Paul on March 24, 2023
In my homepage, I want to add custom pages or even my category pages. But for some reason it's not working. On my homepage quinnpeaks.org you'll see 4 columns (1 row) all saying "outdoors".
I want to have my respective categories on there, whether it's outdoors, travel, etc. And how would I be able to add a custom image for these categories?
Hi Paul,
Sorry but I'm having trouble picturing what you are describing.
Are you able to provide an example of what you are trying to achieve?
Thanks :)
Sure - go to quinnpeaks.org, you'll see those 4 columns right above "latest articles" that are 4 articles. I don't want them to be articles. Instead, I want them to be my 4 categories (travel, outdoors, parks, gardens). How do I do that using the query loop function?
, I want them to be my 4 categories (travel, outdoors, parks, gardens). How do I do that using the query loop function?
Query loop displays posts, not categories, so it's not possible.
You will need to remove the query loop block, and re-create the layout and style using Grid block or Container block with display:flex setting enabled.
Then you can add headline block with static text and link to your 4 categories.
Is there an article or video on this so I Could see this visually? I get that query loop does not show categories and I get that there is an alternative which is using grid block or container block. However, is there any step by step tutorial in doing this?
Hi Paul,
Though outdated, this video would still be very helpful in learning how to use GenerateBlocks and create such a structure: https://www.youtube.com/watch?v=R7fwJECtgSg
You'll also find articles on how to use our Blocks here: https://docs.generateblocks.com/collection/blocks/