Jun 17, 2020 | Divi Resources

How to reverse Divi column order on mobile devices

If a page on your Divi theme based website contains content in a random manner, i.e., Image-Text in the first column, and Text-Image in the 2nd column, there will be some design issue with the mobile view. It would look great on the desktop screens, but on mobile, your content will be displayed as a straight Image, Text, Text, Image just like the below picture, which is disturbing in many ways.

Divi reverse columns on mobile
View on desktop with image on left and content on right in first row and reversed on next row.

Now, the problem

The same layout as seen on a mobile where the second shows content first and then the image.

However, this isn’t a permanent problem because Divi always provides an easy solution to create a better website. And it’s the same in this case, too. Follow the below steps to achieve a perfect design view for any resolution devices.

Let’s get started!

Reverse Stacking of Columns’ Order in the Divi Theme for Mobile Devices

Reversing column on mobile in Divi can be done easily. If you want to reverse order of 2 columns, here are the steps with the required CSS

The wireframe mode shows the structure of the page and the row (second) where we will add a CSS class.
  1. Go to advanced settings of your Row, whose content you want to see reversed on mobile devices.
  2. Then in the CSS Class input field of CSS ID & Classes setting, enter the class name reverse.
  3. After this on your WordPress dashboard, go to Divi >> scroll to the Custom CSS section, and add the below custom CSS.
Reverse CSS
@media screen and ( max-width: 980px ) {
    .reverse {
        display: flex;
        flex-direction: column-reverse;
    }
} 

You can also make your Divi columns reverse on mobile by adding this custom CSS in your style.css file. However, when you add custom CSS in style.css, we recommend that you add that in the child theme file. If somehow, after applying this custom CSS, your columns haven’t reversed or alternated the content view, then make sure you have added the correct class name inside both the row and style.css.

Result:

The layout now as seen on on mobile devices shows the elements of the second column first.

Do you want to add 60+ new modules to your Divi Theme?

Hope you find this article helpful. Before you go, we would like to introduce you to Divi Plus, our multipurpose plugin that comes with some great features you might like.

Divi Plus
Posted By:
Karan
Karan loves making web beautiful with his keen eyes toward design.

5 Comments

  1. Drew

    I know this is a year later, but I still had to thank you for leaving that comment. You saved me from wasting even more time trying to figure out wtf was going on with the special section

    Reply
  2. Cristina

    I don’t know why in the special sections it doesn’t work 🙁

    Reply
  3. Damian

    Wow!!! A really great solution. No more duplicate row and hide it on mobile… haha

    Reply
  4. Jornes

    Thank you for this article! This is exactly what I am looking for. It helps solving my concern on my website. Thanks again!

    Reply

Submit a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

5 Comments

  1. Drew

    I know this is a year later, but I still had to thank you for leaving that comment. You saved me from wasting even more time trying to figure out wtf was going on with the special section

    Reply
  2. Cristina

    I don’t know why in the special sections it doesn’t work 🙁

    Reply
  3. Damian

    Wow!!! A really great solution. No more duplicate row and hide it on mobile… haha

    Reply
  4. Jornes

    Thank you for this article! This is exactly what I am looking for. It helps solving my concern on my website. Thanks again!

    Reply

Submit a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

How to Set Up a Knowledge Base or Wiki Site With WordPress and Divi

How to Set Up a Knowledge Base or Wiki Site With WordPress and Divi

If you have developed a software or SaaS, it's needed you provide your customers with a guide on how to use it. If you don't, the chances are you'd get many support tickets just only for the use of it. To overcome this situation, you can create a knowledge base or...

Divi Travel Agency Child Theme to Showcase Your Travel Services

Divi Travel Agency Child Theme to Showcase Your Travel Services

Travel Agencies, holiday planners, and other tour-travel businesses need something unique to provide an awesome online virtual experience of their travel services. If you also belong to the same business niche running your website on WordPress with Divi, this Travel...

Top Divi Website Examples to Inspire Your Design in 2024

Top Divi Website Examples to Inspire Your Design in 2024

Divi is a renowned name in the web design industry that offers unmatched flexibility to open your creativity.  It doesn’t matter how experienced you are with Divi, finding inspirational design ideas from top Divi websites can be a game-changer. To clarify it more...

Divi WooCommerce Extended

Popular on Divi Extended

Divi Plus WooCommerce Extended Divi Layouts Extended Divi Header Layouts