Brands section on the Storefront Homepage template #2183
Open
Description
Describe the bug
With the inclusion of Brands in WooCommerce core, the "Homepage" template from the Storefront theme now includes a Brand section at the bottom by default; this shows up even if it's empty.
This is currently showing up even if it's empty.
Isolating the problem (mark completed items with an [x]):
- I have deactivated other plugins and themes and confirmed this bug occurs when only WooCommerce + Storefront theme are active.
- I can reproduce this bug consistently using the steps below.
To Reproduce
Steps to reproduce the behavior:
- Install Storefront
- Set up a home page using the "Homepage" template
- Install WooCommerce 9.6 or above
Screenshots
Expected behavior
The Brands section shouldn't appear if no Brands have been published in the store yet (similar to how the other sections work!).
A small suggestion on top of it: an option on the customizer could be included to enable this section at will
Workaround
A small CSS snippet to hide this section can work meanwhile:
section.storefront-product-section.storefront-woocommerce-brands {
display: none;
}
WordPress Environment
Tested on a clean site with JN: https://substantial-cat.jurassic.ninja/