Table Of Contents
- Download The Shop Page Template for FREE
- Download For Free
- You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!
- 1. Go to Divi Theme Builder & Add New Template
- 2. Start Building the Template Body
- 3. Save All Theme Builder Changes & Preview Result
- Final Thoughts
By default, as soon as you switch over to a mobile device, the shop module turns into a one-column layout. Now, if you’re looking to highlight each product individually, that’s great, but with the bigger smartphone screen sizes nowadays, you might want to allow two products to appear next to each other when using the Shop Module. In today’s Divi tutorial, we’ll show you how to change the shop module’s mobile breakpoint using CSS, allowing two products to appear next to each other on most modern smartphones. This is a great tutorial to have within reach if you’re setting up an online shop in the future! You’ll be able to download the design’s JSON file for free as well!
Let’s get to it.
Before we dive into the tutorial, let’s take a quick look at the outcome across different screen sizes.
Download The Shop Page Template for FREE
To lay your hands on the free shop page template, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our Divi Daily email list by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.
1. Go to Divi Theme Builder & Add New Template
Go to Divi Theme Builder & Add New Template
Start by going to DIvi’s Theme Builder and add a new template.
Use Template on Shop Page
Use this new template on your website’s shop page.
- Use On: Shop
Start Building Template Body
And start building the shop template’s body.
2. Start Building the Template Body
Once inside the template editor, you’ll notice a section. Open that section and use the following gradient background for it:
- Color 1: #32ff3d
- Color 2: #29c4a9
- Gradient Type: Linear
- Gradient Direction: 109deg
Upload a background image as well. You can find the background image we’re using in this tutorial in the download folder you were able to download at the beginning of this post.
- Background Image Size: Fit
Move on to the section’s design tab and modify the spacing values accordingly:
- Top Margin: 50px
- Left Margin: 50px
- Right Margin: 50px
- Bottom Padding: 150px
Complete the section settings by adding some border radius.
- All Corners: 20px
Add New Row
Continue by adding a new row to the section using the following column structure:
Add Text Module to Column
Add H1 Content
Add a Text Module to the row’s column with some H1 content of your choice.
H1 Text Settings
Change the module’s H1 text settings accordingly:
- Heading Font: Prata
- Heading Text Alignment: Center
- Heading Text Color: #ffffff
- Heading Text Size: 80px (Desktop), 60px (Tablet), 40px (Phone)
Add Section #2
Add another section right below the previous one. Open the section settings and increase the z index.
- Z Index: 2
Add New Row
Then, add a new row using the following column structure:
Without adding any modules yet, open the row settings and add a background color.
- Background Color: #ffffff
Move on to the module’s design tab and modify the sizing settings as follows:
- Width: 100%
- Max Width: 1380px
Then, add some custom spacing values across different screen sizes.
- Top Margin: 200px
- Top Padding: 50px (Desktop), 20px (Tablet & Phone)
- Bottom Padding: 50px (Desktop), 20px (Tablet & Phone)
- Left Padding: 100px (Desktop), 20px (Tablet & Phone)
- Right Padding: 100px (Desktop), 20px (Tablet & Phone)
We’re also adding some border radius to the entire row.
- All Corners: 25px
Complete the row settings by adding a subtle box shadow.
- Box Shadow Blur Strength: 50px
- Shadow Color: rgba(0,0,0,0.1)
Add Shop Module to Column
Now, it’s time to insert our Shop Module. We’re using a 4 column layout.
- Column Layout: 4 Columns
Move on to the module’s design tab and change the overlay colors.
- Overlay Icon Color: #29c6a6
- Overlay Background Color: rgba(255,255,255,0.75)
Change the image settings too.
- All Corners: 10px
- Box Shadow Blur Strength: 50px
- Shadow Color: rgba(0,0,0,0.11)
Title Text Settings
Continue by modifying the title text settings accordingly:
- Title Font: Prata
- Title Text Size: 30px (Desktop), 25px (Tablet), 20px (Phone)
Price Text Settings
Next, make some changes to the price text settings.
- Price Font: Montserrat
- Price Font Weight: Medium
- Price Text Size: 18px (Desktop), 16px (Tablet), 14px (Phone)
Complete the module settings by adding some top padding.
- Top Padding: 50px
Add Code Module to Column
Once you’ve completed the overall Shop Module design, it’s time to modify the Shop Module mobile column breakpoint using CSS. We’ll add the CSS code to a Code Module inside our design. Go ahead and add a new Code Module right below the Shop Module.
Insert CSS Code
We’re reducing the one-column mobile breakpoint to 300px width. This means that most modern smartphones will display two products next to each other instead of one. To make this happen, we’ll add the following lines of CSS code to the Code Module:
3. Save All Theme Builder Changes & Preview Result
Once you’ve completed the shop page design and added the CSS code to change the mobile breakpoint, you can save all Theme Builder changes and view the outcome on your shop page!
Now that we’ve gone through all steps, let’s take a final look at the outcome across different screen sizes.
In this post, we’ve shown you how to change the shop module’s mobile column breakpoint, which allows you to show two products next to each other on most modern smartphones nowadays. This is an excellent way to reduce the mobile scrolling that’s required and show your visitors more products at once. You were able to download the JSON file for free as well! If you have any questions, feel free to leave a comment in the comment section below.
If you’re eager to learn more about Divi and get more Divi freebies, make sure you subscribe to our email newsletter and YouTube channel so you’ll always be one of the first people to know and get benefits from this free content.