How to Turn Divi Page Builder 4-Column Rows into 2 Columns on Mobile

by | Last updated Oct 28, 2024 | Divi Tutorials

Turn Divi Page Builder four-column rows into two columns on mobile

Divi theme is mobile friendly, and when it comes to making sure that the resultant websites built with Divi become mobile friendly, Divi will collapse the 4-column rows into 1-column on mobile.

This feature may not look as great as you may want, because it tends to make the web page longer for no reason.

In this article, I will show you how to collapse a Divi 4-column row into a two-column layout on mobile devices using the simple CSS snippet below.

First, add “four_to_two” CSS class to the relevant section or row. Then, add the CSS snippet below to your Divi Theme Options.

/* “.four_to_two” make 4 col rows not collapse to one on mobile */

@media (max-width: 479px){
.et_pb_section .et_pb_row_4col.four_to_two>.et_pb_column.et_pb_column_1_4 {
width: 50%!important;
margin-right: 0 !important;
}
.et_pb_section .et_pb_row_4col.four_to_two>.et_pb_column.et_pb_column_1_4:nth-of-type(even) {
width: 50%!important;
margin-right: 0 !important;
}

}

That’s it for now. To be able to receive more of these tips. Subscribe to my newsletter.

Shop Divi Products

Buy nicely done Divi Layouts, Child themes, and extensions for your next Divi project.

Related Articles

How to Add Padding Around Featured Images in Divi’s Blog Module

How to Add Padding Around Featured Images in Divi’s Blog Module

If you're using the Divi theme for your WordPress website and want to customize the appearance of your blog posts page, one simple tweak you can make is adding padding around the featured images. This can help create a more visually appealing layout and better...

Divi Logo Guide: Everything You Need to Know

Divi Logo Guide: Everything You Need to Know

A professionally designed logo is a powerful branding asset that can leave a lasting impression on your website visitors. Research shows that a well-designed logo can boost consumer trust in a brand by an impressive 75%. But the question most people ask is – how do...

Leave a Comment

2 Comments

  1. Does not

    Doesn’t work at all

    Reply
    • Patrick

      Hello,

      May I know where the problem is? If you follow the tutorial, step by step, it should work. Because I use the same technique in all my Divi related projects.

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

WP101 - FREE WordPress Tutorials

Enter your email address below to gain access to the FREE WordPress training.

You have Successfully Subscribed!

Pin It on Pinterest