- This topic has 6 replies, 3 voices, and was last updated 3 years, 7 months ago by
Fernando.
-
AuthorPosts
-
October 4, 2022 at 2:11 pm #2363300
Jesús
Hello! I use generatepress pro and generateblocks. I want to show all categories in the shop page. Could I create a customized template block to show the image, description and title of each categories? Similar to how we could show products or posts using query block and elements. Thanks!
October 4, 2022 at 5:41 pm #2363412Fernando Customer Support
Hi Jesus,
Are you referring to showing Product Categories in the Shop page as well? You should be able to do so in Appearance > Customize > WooCommerce > Shop Page Display. Set it to show Products and Categories.
However, if you’re planning to add a new section with something like a Query Loop Block, what you can do in GP Premium is use a Product Category List Block and hook it to your preferred location through a Block Element. This won’t show the image and description though. You’ll need a third party plugin or custom code for that. It might be good to ask our Facebook group for suggestions: https://www.facebook.com/groups/1113359788719597
For reference of hooks you may use in the Shop Page, here’s a link you can visit: https://www.businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/
October 4, 2022 at 11:31 pm #2363619Synapse
Thanks Fernando.
What I want to do exactly is display the categories dynamically as follows (see attached image)
October 4, 2022 at 11:46 pm #2363636Synapse
October 5, 2022 at 12:07 am #2363655Fernando Customer Support
Will it be just four categories? If so, rather than adding another plugin, you can do it manually. You’ll be adding the Images and description manually(not dynamically) through GenerateBlocks in a Block Element, then you can hook it to
after_headerfor instance. Then, set it to display on Product Category Archives.October 5, 2022 at 12:35 am #2363683Synapse
The idea is that it is displayed dynamically. That is, when a new category is added from the administration panel, it is automatically displayed in the front end.
October 5, 2022 at 1:16 am #2363742Fernando Customer Support
I see. You would need custom code or a third Party plugin for that. It might be good to ask our Facebook group for suggestions as mentioned: https://www.facebook.com/groups/1113359788719597
-
AuthorPosts
- You must be logged in to reply to this topic.