Show a list of first-level product categories on a single category page

23 hours ago 3
ARTICLE AD BOX

I'm using code that displays a shortcode on my online store pages. This shortcode displays a horizontal list of all top-level product categories, built using a Gutenberg block.

<div class="sticky-category"> <div class="content"><?php echo do_shortcode( '[html_block id="939"]' ); ?></div> <button class="toggle-button">Show categories</button> </div>

The categories display correctly on the shop page and single product pages. They don't appear on the product category page. As I understand it, WooCommerce blocks the display of the top-level category list on any category page.

How can I display the shortcode with the top-level product category list on an single category page?

p.s. This question isn't a duplicate, as I don't need to create a category list using code. I need to display a finished category list created in the Gutenberg editor.

Read Entire Article