Bo Framework Logo

Digital Agency Hire

Fixed: WooCommerce 3.4 – Sub Categories Not Displaying

20th August 2018

I’m currently in the early stages of building a custom WooCommerce website and I spent this evening tearing my hair out because my theme wouldn’t display subcategories.

WooCommerce Subcategory settings in the Customiser.

WooCommerce Subcategory settings in the Customiser

Despite having the Category Display set to Show Subcategories in the Theme Customiser the category archive was showing the single products instead.

Switching back to the default Twenty Seventeen theme it worked as normal so the problem could be isolated to my theme files.

After a lot of frantic Googling I found a lot of people had the same problem but no one had posted a solution (due it being a problem with everyone’s individual themes rather than WooCommerce itself).

In the end it turns out I’d simply forgotten to actually declare WooCommerce support for my theme!

If you’re having the same problem simply remember to add the following line to your functions.php file:

add_theme_support( 'woocommerce' );

I hope that helps!

Related Blogs

  • Custom Built Websites vs Prebuilt Themes: A Delicious Comparison

    Websites are a lot like lasagne.

    Read more
  • New Work: The Teenage Market Website

    The Teenage Market is a free platform encouraging young people to start their own business and showcase their creative talents whilst supporting their local markets.

    Read more
View all blogs
House Phone Envelope Menu Twitter Instagram Facebook