Black Friday: up to 60% off. Ends Cyber Monday, 30 November. Claim the deal →

How to Use the DiviGrid Content Grid Module with WooCommerce

By DiviGrid

August 24, 2022

Divi tutorial

Build a featured product or category grid for your shop with cards of different sizes. Five steps in the Divi Builder, each with a screenshot from Divi 5.

Updated 17 November 20267 min readDivi 5 and Divi 4
Quick answer

To build a product grid with the Content Grid module, add DG Content Grid to a full-width row, add one grid item per product or category with an image, title, subtitle, text and button, then turn on Grid Layout to pick one of 19 patterns or set your own spans. You fill in each card yourself, so it suits hand-picked sections. To list products automatically, use the Post Grid module.

When to use Content Grid in a shop

Content Grid arranges cards in any shape: equal cards, or a bento layout where one large card sits beside smaller ones. Every card can hold an image or icon, a title, a subtitle, text and a button. In a WooCommerce shop it works well for sections you curate by hand:

  • A "featured products" block on the home page, with one large hero product.
  • A category grid that links to your shop categories.
  • A collection or lookbook section for a campaign.

Need the grid to update itself? Content Grid cards are written by hand. If you want products pulled from WooCommerce, with the price and an Add to cart button, use the Post Grid module and choose products as the post type.

Two-column Divi content grid of cards with the photo beside the text and a button on each
Cards with the image on the left, a title, a line of text and a button. The same setup works for products.

What you need

  • The Divi theme or the Divi Builder plugin (Divi 5 or Divi 4). The screenshots below are from Divi 5.
  • The DiviGrid plugin, which includes the DG Content Grid module.
  • WooCommerce, with the products or categories you want to feature.

How to build a product grid with Content Grid

1

Add the DG Content Grid module

Open your shop page or home page in the Divi Builder. Add a full-width row with one column, click the grey plus icon, type Content Grid and click DG Content Grid.

Divi 5 Insert Module window with the search Content Grid and the DG Content Grid module
Search for "Content Grid" and click the DG card.
2

Add a card for each product or category

Click Add Content Grid Item once per card. In each item, Content holds the Title, a Sub Title (good for a price or a category) and the text. Image Or Icon holds the product photo, and Button holds the link to the product or category page.

Content Grid item Content group with Title, Title Tag, Sub Title, Sub Title Tag and Content fields
One grid item: title, sub title and text.
3

Choose the layout

Open Grid Settings in the main module. With Grid Layout off, you set Maximum Column Number, Maximum Row Number and Grid Gap for an even grid, like the two-column grid below.

DG Content Grid in the Divi 5 Builder with six dark cards in two columns and Grid Settings showing Maximum Column Number 2 and Grid Gap 30px
Two columns and a 30 px gap.

Turn Grid Layout on to pick one of 19 named patterns. Each name tells you its size, for example Lily is 3 columns by 2 rows and Freesia is 4 by 4.

Grid Layouts list in DG Content Grid with 19 patterns such as Rose (Column 4 Row 1), Lily (Column 3 Row 2) and Magnolia (Column 4 Row 3)
The 19 ready-made grid patterns.
4

Make one card bigger

Open an item and expand its Grid Settings. On the Column tab, Grid Column Start and Grid Column End decide how many columns the card spans. The Row tab does the same for height. A card that spans two columns and two rows is a good home for your best seller.

Content Grid item Grid Settings with Column and Row tabs and the Grid Column Start and Grid Column End fields
Spans are set per card.
5

Style, then check phones

Choose a hover effect and style the cards in the Design tab. Then switch the builder to tablet and phone view. Turn on Enable Mobile Responsive in Grid Settings to show the cards in one full-width column on phones, and click Save.

Settings worth knowing

SettingWhat it does
Image or iconUse a photo or a Divi icon, placed on the top, left, right or bottom of the card.
Focus ItemA hover effect that fades the other cards back, so the visitor reads one offer at a time.
Content RevealA hover effect that shows the text when a card is hovered.
Animated borderA moving gradient frame with up to six colours and its own width and radius.
Order and alignmentReorder the title, subtitle, text and button, and place the content in any of nine positions.
Three-column Divi content grid of cards with icons and buttons, one card highlighted
A three-column grid with the Focus Item hover: one card stands out and the rest fade back.

Content Grid or Divi rows and blurbs?

Rows and Blurb modules work for equal cards. A content grid is easier when cards differ in size or need hover effects.

TaskDG Content GridDivi rows and blurbs
Cards of different sizes in one blockYes, with spans or patternsOnly with nested rows
Reorder title, text and button per cardYesNeeds custom CSS
Hover focus and content revealBuilt inNeeds custom CSS or JavaScript
Animated gradient borderBuilt inNeeds custom CSS
Phone layoutOne switch for a single columnSet per row and column
DiviGrid
Try the Content Grid module live

See the 19 patterns and four example grids for an agency, a restaurant, a law firm and a travel journal.

19 ready-made patternsCustom row and column spansDivi 5 and Divi 414-day money-back guarantee
See the Content Grid module

Frequently asked questions

Does Content Grid pull products from WooCommerce automatically? +

No. You add each card yourself, which suits hand-picked sections. To list products automatically with the price and an Add to cart button, use the Post Grid module with products as the post type.

Can I make my own bento layout? +

Yes. Set the column count and gap, then give each card a row and column start and end. Or turn on Grid Layout and pick one of 19 ready-made patterns.

How does the grid look on phones? +

Turn on Enable Mobile Responsive in Grid Settings to show the cards in one full-width column on phones. Spacing and sizes can also be set per device.

Does Content Grid work in Divi 5 and Divi 4? +

Yes. The Content Grid module works in both Divi 5 and Divi 4.

See the Content Grid module, read the module documentation or compare the plans.

DiviGrid

The DiviGrid team has been making Divi modules since 2022. Our plugin adds 50+ modules for grids, galleries, carousels and text effects to Divi 5 and Divi 4, with DiviGrid AI built in for building Divi pages with an AI assistant. These articles are written by the people who build and support the plugin.

Get 10% OFF for Subscribe Now

0 Comments

You May Also Like