When using WooCommerce with the Divi theme, one common design tweak many users want is moving the âAdd to Cartâ button below the product image. This small adjustment can significantly improve the visual flow of your product pages, creating a more user-friendly experience.
In this blog, weâll guide you through the process of How to Add WooCommerce Add to Cart Button Under the Image in Divi page builder and WooCommerceâs versatile layout options. Weâll provide step-by-step instructions, optional CSS adjustments, and tips for ensuring a responsive and well-designed product page that aligns with WooCommerce best practices.

Table of Contents
ToggleWhy Adjust the Placement of the âAdd to Cartâ Button?
WooCommerce offers a flexible e-commerce platform, but its default product page layouts may not suit everyoneâs design preferences. Divi provides more control over customization. Here are some reasons why moving the âAdd to Cartâ button beneath the product image is beneficial:
- Improved Visual Flow: By placing the button under the product image, you create a logical progression where visitors view the product before taking action.
- Enhanced Usability: The button becomes easier to find after customers evaluate the product, minimizing the need to scroll or search for it.
- Design Flexibility: Diviâs customizations allow you to match this layout change with your brand’s design language, making your store stand out.
Also Read: Can WooCommerce Connect to QuickBooks Online (QBO)?
Prerequisites for Customizing WooCommerce with Divi
Before you start, ensure the following:
- Divi is installed and activated on your WordPress site.
- WooCommerce is installed and active with some products added.
- You have basic familiarity with Diviâs Visual Builder and a little CSS knowledge (weâll keep code minimal).
Step-by-Step Guide to Moving the âAdd to Cartâ Button Under the Image
Step 1: Open the Divi Builder on the Product Page
To begin, navigate to the WooCommerce product page you want to edit:
- In your WordPress dashboard, go to Products and select the product you want to customize.
- On the product edit screen, click Use Divi Builder to launch the Divi Visual Builder.
- Youâll now enter the Visual Builder, where you can modify the product page layout.
Step 2: Customize the Product Page Layout
By default, WooCommerce product pages often have the âAdd to Cartâ button alongside the product image and details. To move it:
- Locate the Product Image Section: In the Divi Builder, find the section or module that contains the product image.
- Find the Product Details Module: Look for the module containing the product name, price, description, and âAdd to Cartâ button.
Step 3: Rearrange the âAdd to Cartâ Button
Using Diviâs intuitive drag-and-drop functionality:
- Click on the product details module where the âAdd to Cartâ button is located.
- Drag this module beneath the product image. If the button is part of a larger product details module, youâll need to move the whole module below the image.
- Once satisfied, click Save to preserve your changes.
Step 4: Fine-Tune the Layout
After moving the button, you may want to refine the design:
- Adjust Spacing: Ensure appropriate spacing between the product image and âAdd to Cartâ button. You can modify margin and padding settings directly within the Divi Builder.
- Style the Button: Customize the buttonâs color, font, and size to match your theme by selecting the design tab of the âAdd to Cartâ module.
Adding Custom CSS (Optional)
If Diviâs drag-and-drop functionality doesnât give the precise layout you want, you can enhance the design with a bit of custom CSS.
Step 1: Inspect the Page Structure
Before applying CSS, inspect the product pageâs HTML structure. Right-click on the page in your browser and select Inspect. Find the classes for the product image and the âAdd to Cartâ button.
Step 2: Add Custom CSS
Hereâs an example of CSS that moves the âAdd to Cartâ button under the product image:
css
.woocommerce div.product .images {
display: block;
}
.woocommerce div.product form.cart {
clear: both;
margin-top: 20px;
}
This code ensures that the product image is displayed as a block and places the âAdd to Cartâ button below it with some spacing (adjust the margin-top
value as needed).
Step 3: Apply CSS in Divi
To add the custom CSS:
- Go to Divi Theme Options.
- Scroll to the Custom CSS section and paste the code.
- Save the changes.
Alternatively, for a more permanent solution, you can add the CSS to your child themeâs style.css
file.
Ensuring Responsiveness
After making your changes, itâs essential to test how the page looks across different devices.
- Diviâs Responsive Preview: Use Diviâs built-in responsive design view to preview the layout on desktop, tablet, and mobile devices.
- Mobile Adjustments: Make adjustments to button size or spacing using Diviâs responsive controls if necessary.
Also Read:Â Can WooCommerce Do a 75 000 ACH Payment?
Final Considerations
Before finalizing the layout, be sure to:
- Test Product Variations: If your products have variations (like size or color), confirm that the âAdd to Cartâ button works seamlessly after the layout change.
- Check Cross-Browser Compatibility: Test the design across multiple browsers to ensure consistency.
- Maintain SEO Best Practices: Ensure that moving the button doesnât negatively affect SEO by keeping the button visible and accessible without excessive scrolling.

Final thoughts on How to Add WooCommerce Add to Cart Button
By utilizing Diviâs Visual Builder and WooCommerceâs customization options, you can easily move the âAdd to Cartâ button below the product image, creating a more intuitive and visually appealing shopping experience. Whether you use Diviâs drag-and-drop tools or custom CSS, this tweak can enhance both the aesthetics and functionality of your product pages. Always remember to test your design for responsiveness and browser compatibility to provide a seamless experience for all users.
This simple customization is just one example of how Divi and WooCommerce work together to create a flexible, dynamic e-commerce platform. Keep exploring Diviâs tools to tailor your online store to your brandâs unique needs.
Interesting Reads
5 Best WooCommerce Donation Plugins
Canât Type Into Short Description Text Field for WooCommerce Products