Skip to content

Brands section on the Storefront Homepage template #2183

Open
@OmarFPG

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:

  1. Install Storefront
  2. Set up a home page using the "Homepage" template
  3. Install WooCommerce 9.6 or above

Screenshots

Image

Image

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/

Metadata

Assignees

No one assigned

    Labels

    priority: normalThe issue/PR is low priority—not many people are affected or there’s a workaround, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions