WooCommerce module

Product Categories block

WooCommerce product categories as image tiles in a grid or carousel.

Overview

Product Categories shows your shop departments as clickable tiles using each category’s thumbnail image (set in Products → Categories), with the name, an optional product count and description. Show all top-level categories automatically or pick specific ones.

At a glance

Block name
wpbb/product-categories
Module
WooCommerce
Find it by searching
Product Categories
Requires
WooCommerce installed and active
Works with
WooCommerce must be installed and active. The WooCommerce module only appears when it is.
Loads JavaScript on the site
Only the shared carousel script, for the Carousel layout

When and why to use it

  • “Shop by category” sections.
  • Department navigation on landing pages.

Example scenarios

  • Homepage: 6 top-level categories, Text over image, 3 columns, product count on.

How to add the Product Categories block

  1. Open the editor. In your WordPress dashboard go to Pages (or Posts) and click the page you want to edit, or click Add New. For headers, footers and templates, use Appearance → Editor (block themes).
  2. Add a new block. Click the blue + (Block Inserter) button in the top-left corner, or the small + that appears where you want the block. You can also type / on an empty line.
  3. Search for the block. Type Product Categories in the search field. Brigade Blocks appear in the Brigade Blocks category and show the coral block icon.
  4. Insert it. Click Product Categories in the results. The block appears with a live preview of your product categories.
  5. Configure the content. Edit the text directly on the block, then open the Settings tab (gear icon) in the right-hand sidebar for the options described below. If the sidebar is hidden, click the gear icon in the top-right corner.
  6. Customise the design. Switch to the Styles tab (half-filled circle icon) to change colours, spacing, borders and more — see Design & styling.
  7. Save or publish. Click Save draft to keep working later, Preview to check it, or Publish / Update to make it live.

Content settings

You set up this block in two places: on the block itself in the editor, and in the Settings tab (gear icon) of the sidebar on the right. Every option is listed below, with its default value.

Settings panel: Categories

Only these categories

What it does
Shows exactly these categories.
What to enter or choose
Pick categories, or leave empty for automatic.
Default
None selected
How to use it
Start typing a name and pick it from the suggestions. Add several if needed; remove one with its ×.
When to use it
For a curated selection.
Example
“Men”, “Women”, “Kids”.
Result
When set, the automatic options below are hidden.

Top-level categories onlyShown when no categories are picked

What it does
Leaves out sub-categories.
What to enter or choose
On or off.
Default
On
How to use it
Click the switch to turn it on (blue) or off.
When to use it
Usually.
Example
On.
Result
Only main departments.

Order byShown when no categories are picked

What it does
How categories are sorted.
What to enter or choose
One of: Custom order (as sorted in WooCommerce), Name, Most products.
Default
Custom order (as sorted in WooCommerce)
How to use it
Open the dropdown and pick an option.
When to use it
Always optional.
Example
Most products.
Result
The order changes.

Number of categoriesShown when no categories are picked

What it does
How many categories.
What to enter or choose
A number from 1 to 24.
Default
6
How to use it
Drag the slider, or type a number in the box next to it.
When to use it
Always.
Example
6.
Result
More or fewer tiles.

Hide empty categories

What it does
Leaves out categories without products.
What to enter or choose
On or off.
Default
On
How to use it
Click the switch to turn it on (blue) or off.
When to use it
Usually.
Example
On.
Result
Only categories with products.

Settings panel: Layout

Layout

What it does
Grid or swipeable carousel.
What to enter or choose
One of: Grid, Carousel.
Default
Grid
How to use it
Click one of the buttons in the group.
When to use it
Always optional.
Example
Carousel for many categories.
Result
The arrangement changes.

Style

What it does
Where the name sits.
What to enter or choose
One of: Text over image, Card (text below image).
Default
Text over image
How to use it
Open the dropdown and pick an option.
When to use it
Always optional.
Example
Text over image.
Result
The tile design changes.

Columns (desktop)Desktop

What it does
Items per row on large screens.
What to enter or choose
A number from 1 to 6.
Default
3
How to use it
Drag the slider, or type a number in the box next to it.
When to use it
Always.
Example
4.
Result
Items resize to fit.

Columns (tablet)Tablet

What it does
Items per row below 1024px.
What to enter or choose
A number from 1 to 4.
Default
3
How to use it
Drag the slider, or type a number in the box next to it.
When to use it
Always.
Example
3.
Result
Applies up to 1023px wide.

Columns (mobile)Mobile

What it does
Items per row below 600px.
What to enter or choose
A number from 1 to 2.
Default
2
How to use it
Drag the slider, or type a number in the box next to it.
When to use it
Always.
Example
2.
Result
Applies up to 599px wide.

Image ratio

What it does
The tile shape.
What to enter or choose
One of: 1:1, 3:4 (portrait), 4:3, 16:9.
Default
1:1
How to use it
Open the dropdown and pick an option.
When to use it
Match your category images.
Example
3:4.
Result
Images are cropped to that shape.

Product count

What it does
The number of products in each category.
What to enter or choose
On or off.
Default
On
How to use it
Click the switch to turn it on (blue) or off.
When to use it
Optional.
Example
On.
Result
Shown on each tile.

Description

What it does
The category description.
What to enter or choose
On or off.
Default
Off
How to use it
Click the switch to turn it on (blue) or off.
When to use it
Optional.
Example
On.
Result
Shown on each tile.

Title tag

What it does
The heading level of names.
What to enter or choose
One of: H2, H3, H4, H5, H6, P.
Default
H3
How to use it
Open the dropdown and pick an option.
When to use it
Match the page structure.
Example
H3.
Result
Structure only.

Only shown for the Carousel layout.

Design & styling

Select the block, open the Styles tab in the settings sidebar (the half-filled circle icon next to the gear) and use the three pickers at the top of the Style panel:

  1. Element — which part of the block to style.
  2. State — Normal, or a state such as Hover (only the states the part supports are offered).
  3. Device — Desktop, Tablet or Mobile, for values that can differ per screen size.

Only panels that make sense for the chosen part and state are shown. The full meaning of every control is in the Styling Controls guide; below is exactly what Product Categories offers.

Element: Tile selected first

Each tile. Hover state.

Styles-tab controls for “Tile”
PanelControlPer deviceAvailable in states
BackgroundType—Normal, Hover
Color / Gradient—Normal, Hover
Image—Normal
BorderBorder type—Normal, Hover
Border—Normal, Hover
RadiusYesNormal
Box ShadowRemove shadow—Normal, Hover
Shadow layers—Normal, Hover
SpacingPaddingYesNormal
SizingWidthYesNormal
Max widthYesNormal
HeightYesNormal
Min width / Min height / Max heightYesNormal
EffectsOpacity (%)YesNormal, Hover

States for this part:

  • Hover — When the mouse pointer is over it. (Touch screens have no hover; they show the normal style.)

Element: Block

The whole block.

Styles-tab controls for “Block”
PanelControlPer deviceAvailable in states
BackgroundType—Normal
Color / Gradient—Normal
Image—Normal
BorderBorder type—Normal
Border—Normal
RadiusYesNormal
Box ShadowRemove shadow—Normal
Shadow layers—Normal
SpacingMarginYesNormal
PaddingYesNormal
SizingWidthYesNormal
Max widthYesNormal
HeightYesNormal
Min width / Min height / Max heightYesNormal
Block alignmentYesNormal
PositionPositionYesNormal
Top / Right / Bottom / LeftYesNormal
Z-indexYesNormal
OverflowYesNormal
TransformMove X / Move Y—Normal
Scale X / Scale Y—Normal
Rotate (°), Rotate X (°), Rotate Y (°)—Normal
Skew X (°) / Skew Y (°)—Normal
EffectsOpacity (%)YesNormal
State transition (ms)—Normal
Timing—Normal
VisibilityShow on Desktop / Tablet / Mobile—Normal

States: Normal only.

Element: Overlay

The dark layer over the image (Text over image). Hover state.

Styles-tab controls for “Overlay”
PanelControlPer deviceAvailable in states
BackgroundType—Normal, Hover
Color / Gradient—Normal, Hover
Image—Normal
EffectsOpacity (%)YesNormal, Hover

States for this part:

  • Hover — When the mouse pointer is over the whole block — so this part changes as soon as visitors point at the block.

Element: Title

Names.

Styles-tab controls for “Title”
PanelControlPer deviceAvailable in states
TypographyFont family—Normal
Font sizeYesNormal
Weight—Normal
Style—Normal
Line heightYesNormal
Letter spacingYesNormal
Letter case—Normal
AlignmentYesNormal
Decoration—Normal
ColorsText—Normal

States: Normal only.

Element: Count

Product counts.

Styles-tab controls for “Count”
PanelControlPer deviceAvailable in states
TypographyFont family—Normal
Font sizeYesNormal
Weight—Normal
Style—Normal
Line heightYesNormal
Letter spacingYesNormal
Letter case—Normal
AlignmentYesNormal
Decoration—Normal
ColorsText—Normal

States: Normal only.

Element: Carousel arrows

Carousel arrows.

Styles-tab controls for “Carousel arrows”
PanelControlPer deviceAvailable in states
ColorsText—Normal, Hover, Focus
BackgroundType—Normal, Hover, Focus
Color / Gradient—Normal, Hover, Focus
Image—Normal
BorderBorder type—Normal, Hover, Focus
Border—Normal, Hover, Focus
RadiusYesNormal
Box ShadowRemove shadow—Normal, Hover, Focus
Shadow layers—Normal, Hover, Focus
SizingWidthYesNormal
Max widthYesNormal
HeightYesNormal
Min width / Min height / Max heightYesNormal

States for this part:

  • Hover — When the mouse pointer is over it. (Touch screens have no hover; they show the normal style.)
  • Focus — When it has keyboard focus — reached with the Tab key. Mouse clicks usually do not show focus styles.

Responsive settings

Brigade Blocks uses three screen sizes: Desktop (wider than 1023px), Tablet (600–1023px) and Mobile (599px and narrower). Tablet and Mobile values are optional: when empty, the value of the next larger screen is used.

In the Styles tab, pick the Device first; these controls can then have a different value for that screen size: Radius, Padding, Width, Max width, Height, Min width / Min height / Max height, Opacity (%), Margin, Block alignment, Position, Top / Right / Bottom / Left, Z-index, Overflow, Font size, Line height, Letter spacing, Alignment.

The Visibility panel (Styles tab, Normal state) can hide the block entirely on Desktop, Tablet or Mobile.

Advanced options

  • HTML anchor (Advanced section of the Settings tab) — a unique name such as pricing, so you can link straight to this block with #pricing at the end of the page address (for example from a menu).
  • Additional CSS class(es) (Advanced section) — for custom CSS from your theme or the Site Editor. Separate several classes with spaces.
  • Custom attributes (Advanced section) — add data-*, title, aria-label, aria-describedby, lang or dir attributes. See Custom attributes.
  • State transition (Styles tab → Effects, Normal state) — how smoothly hover and focus styles animate.
  • Width alignment (block toolbar) — Wide width, Full width, when your theme supports them.

How it works on your site

Server-rendered links to each category page. The carousel script loads only for the Carousel layout.

Tips and best practices

  • Give every category a thumbnail in Products → Categories for a consistent look.

Limitations and notes

  • Categories without a thumbnail show WooCommerce’s placeholder image.