• Resolved sreford

    (@sreford)


    I’ve created a new product category for three subcategories, being single origin coffee, coffee blends and tea. I can get this to show in the menu, but in the shop page itself, it won’t show. This happens, regardless of theme I use. How do I get this to show itself?

    • This topic was modified 3 years, 11 months ago by sreford.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Are you trying to add those categories to this menu? By default, the menu section can be edited under Appearance > Menus.

    Please refer to this documentation for more info: https://docs.woocommerce.com/document/docs-menus/

    If the menu is not displaying properly, then please temporarily switch your theme to Storefront and disable all plugins except for WooCommerce. If that resolves the issue, then re-enable plugins one-by-one until you find the one that’s causing the issue.

    Thread Starter sreford

    (@sreford)

    No, trying to get a category to show on the main shop page, which as I mentioned, didn’t work regardless of theme. But fixed it myself by adding a dummy product to parent category then erasing it, as I theorised that the parent category of 3 subcategories wouldn’t show unless it had a product in it, which caused the parent category to show up on the main shop page.

    • This reply was modified 3 years, 11 months ago by sreford.

    Hi,

    Thank you for the clarification. As you’ve pointed out, empty categories don’t show on the shop page by default. I’m glad to hear you found a way to display it.

    Alternatively, you could also use the code below to force show empty categories (I would recommend using a plugin like?Code Snippets?to add the snippet to your site):

    add_filter( 'woocommerce_product_subcategories_hide_empty', '__return_false' );

    Hi @sreford

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Specific product category not showing’ is closed to new replies.