Here is the translation of the Polish text into English:
Method 1: Changing layout using child theme and WooCommerce hooks (advanced)
Step 1: Create a child theme (if you don’t already have one)
To avoid your changes being overwritten by future Divi updates, work on a child theme:
-
Log in to your server via FTP (or use the file manager in your hosting control panel).
-
Navigate to
wp-content/themes/
and create a new folder, e.g.,divi-child
. -
Create a new file called
style.css
with the following content:
-
Create a new file called
functions.php
with the following content:
Step 2: Add custom styles to your child theme’s style.css file:
Step 3: Use the Divi Builder to create a custom layout:
-
Navigate to Divi → Theme Builder.
-
Click Add Template → Add Custom Body → Build from Scratch.
-
Add the following modules:
-
Image Module (product image),
-
Woo Add to Cart Module under it.
-
-
Save your changes and assign the template to products.
Summary
You have a few options to move the “Add to Cart” button below the product image in WooCommerce with Divi theme:
Method | For whom | Benefits |
---|---|---|
PHP + Hooks | Advanced users | Full control, optimization |
CSS | Beginners | Quick and safe |
Divi Builder | All users | Create a custom layout |
Note: This is just one way to move the “Add to Cart” button below the product image in WooCommerce with Divi theme. You can choose any of the methods mentioned above or use a different approach based on your needs and preferences.