How to Create Responsive Product Grids with Divi 5’s CSS Grid Editor

Published: November 25, 2026 Author: TechnoCrackers
How to Create Responsive Product Grids with Divi 5’s CSS Grid Editor

A well-designed product grid can make a significant difference in how visitors explore an online store. Whether you’re showcasing clothing, electronics, accessories, or other WooCommerce products, an organized grid helps customers browse products, compare options, and find what they need more easily.

Traditionally, creating flexible product layouts in WordPress often required additional CSS, third-party plugins, or complicated layout configurations. However, Divi 5 makes this process much easier with its built-in CSS Grid Editor.

With Divi 5’s CSS Grid Editor, you can create custom product layouts, control column spacing, highlight featured products, and adjust the grid for different screen sizes—all through a visual interface.

In this tutorial, we’ll walk through how to create a responsive WooCommerce product grid using Divi 5. You’ll learn how to build reusable product cards, connect dynamic WooCommerce content, customize grid layouts, and optimize the design for desktop, tablet, and mobile devices.

What You Need Before Getting Started

Before building your product grid, make sure your WordPress website has the following:

  • WordPress: An active WordPress installation.
  • Divi 5: The latest available Divi 5 version.
  • WooCommerce: Installed and activated on your website.
  • Published Products: Products with titles, prices, categories, and featured images.

You don’t need to configure payment gateways or shipping methods just to build and preview your product grid.

For this tutorial, we’ll create a product showcase with four columns on desktop, two columns on tablet, and one column on mobile.

Step 1: Create a New Section for Your Product Grid

Start by opening the WordPress page where you want to display your products. Launch the Divi 5 Visual Builder and create a new section.

Choose a one-column row to hold your product section heading.

Add a Text module for a small introductory label, such as “Our Collection,” followed by a Heading module introducing your products.

Heading module introducing your products

For example:

  • Eyebrow Text: Explore Our Collection
  • Main Heading: Find Your Perfect Product

You can customize the typography, colors, spacing, and alignment to match your website’s design.

Next, add another one-column row below the heading. This row will contain your product cards and serve as the foundation for the CSS Grid layout.

Keeping the heading and product grid in separate rows makes it easier to manage the spacing and customize each part of the section independently.

Step 2: Build a Reusable Product Card

Before configuring the grid, create the design for a single product card.

Inside the product grid row, use the available Divi elements to create a structured product card.

A typical product card can include:

  • Product featured image
  • Product category
  • Product name
  • Product price
  • View Product button

Organize these elements into groups so that the product information stays properly structured.

For example, place the product category, product name, and button inside one group. Keep the price in a separate group if you want it positioned independently.

This structure makes it easier to control alignment, spacing, and responsive behavior.

Design Tip: Use consistent image proportions, readable typography, and enough spacing between elements. A clean product card helps visitors focus on the products rather than unnecessary design details.

Step 3: Configure the CSS Grid Layout

Now it’s time to turn your product row into a grid.

Select the product grid row and navigate to:

Design → Layout → Display → Grid

Grid

Once Grid is selected, Divi 5 allows you to configure the number of columns, spacing, and grid placement through its CSS Grid Editor.

For the desktop layout, start with the following settings:

  • Columns: 4
  • Column Gap: 20px
  • Row Gap: 20px
  • Column Width: Equal

This creates a four-column product layout with consistent spacing between cards.

You can adjust the column widths and gaps depending on your website’s design and available content area.

The CSS Grid Editor also gives you more control over individual grid items, allowing you to create layouts that go beyond traditional equal-width product cards.

Step 4: Connect WooCommerce Products Using Loop Builder

Instead of manually creating a separate card for every product, you can use Divi 5’s Loop Builder to automatically repeat your product card.

Select the product card element and open its Content settings.

Navigate to the Loop settings and enable the Loop Element option.

Configure the loop with the following settings:

  • Query Type: Post Type
  • Post Type: Products
  • Posts Per Page: Choose the number of products you want to display.
  • Order By: Date or another suitable sorting option.
  • Order: Descending or ascending, depending on your preference.

Once the loop is configured, Divi will repeat your product card using the products returned by the WooCommerce query.

This means you only need to design one card. When you update its layout or styling, the changes apply to all repeated product cards.

Make sure your WooCommerce products are published and have the necessary product information before previewing the grid.

Step 5: Add Dynamic Product Images and Information

A product grid becomes useful when each card automatically displays the correct product information.

Divi 5 supports dynamic content connections that allow you to pull information directly from WooCommerce.

You can connect the following elements:

Product Image

Select the card’s background image or image element and use the dynamic content option to connect it to the Loop Featured Image.

Choose an appropriate image size and use the Cover setting when you want the image to fill the available area.

Product Category

Select the Text module used for the category and connect it to Loop Product Terms.

Choose Product Categories as the taxonomy so each card displays its relevant category.

Product Name

Select the Heading module and connect it to Loop Product Title.

The product name will automatically change according to the current loop item.

Product Price

Select the price Text module and connect it to Loop Product Current Price.

This allows the product card to display the current WooCommerce price, including the sale price when applicable.

Product URL

Connect the View Product button URL to Loop Product Link URL.

Add Dynamic Product Images and Information

Now, every repeated product card will direct visitors to its corresponding WooCommerce product page.

Using dynamic content eliminates the need to manually update product names, images, prices, and links whenever your catalog changes.

Step 6: Customize the Product Card Design

Once the dynamic content is connected, customize the appearance of your product cards.

Here are some styling recommendations:

Product Image

Use a consistent aspect ratio so all product images look organized. Choose high-quality images and make sure important product details aren’t cropped.

Product Name

Use a clear heading style with enough contrast against the background. Keep the font size readable and avoid excessively long product titles where possible.

Product Price

Make the price easy to identify by using a slightly stronger font weight or a contrasting text color.

View Product Button

Use a consistent button style across all cards. Make sure the button is visually distinguishable and easy to click.

Card Background and Spacing

Add padding around the product information and use subtle borders, background colors, or shadows to separate individual cards.

You can also add hover effects to make the product grid feel more interactive.

For example, use a small upward movement when visitors hover over a product card. Keep the transition smooth so it doesn’t distract from browsing.

Not every product needs to occupy the same amount of space.

If you want to highlight a new arrival, best-selling product, or special collection, you can use the CSS Grid Editor to give a particular card more room.

Select the grid row and open the Grid Editor.

Choose the product card you want to highlight and adjust its column span.

For example, if your desktop grid contains four columns, you can make the first product span two columns while the remaining products use one column each.

This creates a more dynamic layout:

  • Featured product: Two-column width
  • Regular products: One-column width
  • Remaining cards: Automatically flow into the available grid spaces

You can use this layout to draw attention to selected products without creating a completely separate section.

Make sure the featured product is selected consistently through your loop query or grid placement rules.

Step 8: Make Your Product Grid Responsive

A product grid should look good on every device, not just desktop screens.

The CSS Grid Editor makes it possible to configure different layouts for desktop, tablet, and mobile breakpoints.

Here is a recommended responsive configuration:

Desktop Layout

  • Columns: 4
  • Column Gap: 20px
  • Row Gap: 20px
  • Featured Product: Spans 2 columns

Tablet Layout

  • Columns: 2
  • Column Gap: 16px
  • Row Gap: 20px
  • Featured Product: Spans 2 columns

Mobile Layout

  • Columns: 1
  • Column Gap: 12px
  • Row Gap: 16px
  • Featured Product: Spans 1 column

To configure these layouts, switch between the responsive device previews in Divi 5 and update the grid settings for each breakpoint.

One important detail is to check any custom grid placement rules inherited from larger breakpoints. For example, if the first product spans two columns on desktop, you may need to override that setting on mobile so it fits within the single-column layout.

Also, review the product card’s minimum height, image sizing, and text spacing at each breakpoint.

Responsive Design Tip: Don’t simply shrink the desktop grid to fit smaller screens. Adjust the number of columns, spacing, and card dimensions so customers can comfortably view and interact with each product.

Step 9: Test and Publish Your Product Grid

Before publishing your changes, preview the product grid on different screen sizes.

Check the following:

  • Every product displays the correct featured image.
  • Product names and categories are connected correctly.
  • Prices display the correct regular or sale price.
  • View Product buttons link to the correct product pages.
  • Featured products occupy the intended grid space.
  • Desktop, tablet, and mobile layouts display correctly.
  • Long product names don’t break the card layout.
  • Product images aren’t cropped incorrectly.
  • Hover effects work smoothly.
  • Buttons and product links are accessible using a keyboard.

Also, test the layout using actual WooCommerce products rather than relying only on the Visual Builder preview.

Once everything looks correct, save your changes and publish the page.

Best Practices for Creating Product Grids in Divi 5

A good product grid should be visually appealing, easy to navigate, and simple to maintain.

Keep these best practices in mind when designing your layout.

  1. Maintain Consistent Product Images

Use images with similar dimensions and aspect ratios. This creates a more balanced layout and prevents individual cards from looking uneven.

  1. Avoid Too Much Information

Display only the most important details, such as product name, price, category, and a clear product link. Additional information can be displayed on the individual product page.

  1. Use Dynamic Content Whenever Possible

Connect product information through Divi’s dynamic content options rather than entering it manually. This makes your product grid easier to maintain as your WooCommerce catalog grows.

  1. Prioritize Mobile Usability

Make sure product images, prices, and buttons are easy to view and interact with on smaller screens.

  1. Optimize Product Images

Large product images can affect page loading speed. Compress images, use modern formats such as WebP, and avoid loading unnecessarily large image files.

  1. Keep the Design Consistent

Use the same typography, spacing, colors, and button styles across your product cards to create a professional shopping experience.

Conclusion

Creating responsive product grids with Divi 5’s CSS Grid Editor gives you greater control over how products are displayed on your WooCommerce website.

By combining the CSS Grid Editor with Divi 5’s Loop Builder and dynamic content features, you can create reusable product cards, highlight selected products, and build layouts that adapt to different screen sizes.

Whether you’re creating a simple product collection or a more customized online store, Divi 5 provides the visual layout tools needed to build flexible and maintainable product grids without relying heavily on custom CSS.

Start with a simple grid, experiment with different column arrangements, and customize the design to create a product browsing experience that works well for your customers.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Limited Time Offer

X

Try a Free 2-Hour Test Task

Experience our quality, speed, and communication on any small WordPress task before you commit. No contract. No cost. No obligation.
[For New Agency Partners]

"*" indicates required fields

This field is for validation purposes and should be left unchanged.
Name*
0
Would love your thoughts, please comment.x
()
x