Can You Re-Order Divi Columns On Mobile? Yes! It’s Very Easy!
In the last tutorial, we learned how easy it is to resize Divi columns. The next logical tutorial now is how to change the stacking order of Div columns on tablet and mobile. The two tutorials combined create an amazingly simple system that no one else has achieved. So I’m excited about this, and know it is going to be super helpful to so many people!
Hey there! We added this feature to our popular Divi Responsive Helper plugin!
Change Divi Colum Mobile Stacking Order
Here’s a quick visual Of What We Want To Do
I set up a quick demo with a row with two columns, the one on the left with a Text Module and the one on the right with an Image Module. By default, Divi will stack these from left to right, so on mobile, the Text Module would be on top and the Image Module on the bottom.

Divi does not have this featuer…so will this take a tone of coding?
You will need some CSS, but don’t be too scared. We are not going to add a bunch of confusing CSS classes and long code snippets like Elegant Themes did in their tutorial…instead, we are going to literally solve this missing Divi feature with a few words of code right in the Divi builder!
How To Control Divi Column Stacking Order on Mobile
Step #1. Add 2 Lines of CSS to Your Row Settings
The first to do is to add some CSS to the Divi row settings. This CSS is needed to tell the columns inside the row to display with flex, with a type of CSS. Once this simple step is completed, you will already be half way to controlling your Divi column stacking order on mobile.
Go to the Row Settings>Advanced Tab>Custom CSS toggle. Paste the following snippet of CSS there in the Main Element.
display: flex;
flex-wrap: wrap;

Manually Set The Divi Column Stacking Order
Step #2. Tell Each Column Which Order Number They Are
If you thought step #1 was easy, you are in luck. The last step is even easier, and a bit more fun as well.
Inside the row settings you will see a list of your columns. Click on the settings icon and got the column’s Advanced Tab>Custom CSS toggle.
For each column, you need to decide which order you want them to stack on mobile. All you have to do is add the words “order: 1;” and “order: 2” etc. to the columns. Write or paste those simple words in the Main Element.
order: 1;


You can do this for as many columns as you want, 2, 3, 4, 5, or 6.
And that’s pretty much it! Here’s how example Divi columns stack now that we are finished. The column that was on the left on desktop, the text, is now on the right. The column that was on the right on desktop, the image, is now on the top.


Don’t forget to check out our Divi Responsive Helper plugin that has this column stacking feature built into it already!
Great tutorial, works like a charm! Thank you 🙂
Hi Maksym,
I’m very happy you found this and that it worked out so well for you! 🙂
Hi Nelson,
Love your snippets, they’ve been super helpful! I just tried this one, and I must have missed something, as it flipped on desktop! Do I need an @media{} on the first part?
Never mind, I didn’t click the mobile icon first! Perfect!!! Thanks Nelson! Great stuff!
Hey Kathy,
Yes I was just going to say, you need to adjust it for Desktop, Tablet, or Phone. Glad you got it!
Wonderful !
Un mot pour les francophones comme moi : Bravo ça marche super !
I’m so glad it works! Thanks for the greed feedback! 🙂
Hi There
I just could not get to work on my site. I then insert a new section with two modules and did everything as recommended but still didn’t work.
I then followed the Divi link below and all worked fine:
https://www.elegantthemes.com/blog/divi-resources/how-to-change-divis-column-stacking-order-on-mobile-devices
Hi Francois, my tutorial works great and is much simpler than theirs. But if you got it to work and are satisfied, then that’s all that matters.
I can;t seem to get this to work, it simply isn’t changing the stacking order. Any idea why?
Yes I am definitely putting the CSS in the right place.
incredible
Thank you, I really love how easy this is!
Brilliant!!! Not sure if it’s just me but can’t see the date of the post but still working a treat in April 2020!
Thanks Tracey, yes I choose not to show the date because some people think if this said 2019 that is would be outdated. I keep all of my tutorials up to date 🙂
Is there something else I need?
I can’t make it work.
Hi Bautista,
This works, I’d have to know what you tried in order to help much beyond that. Let me know.
Love the tutorial! It was working great then it suddenly stopped. Was there an update that might have broken it?
Hi Adam,
I certainly still works, I just double checked. It may not show in the Visual Builder, but that’s to be expected.
Thanks for creating this tutorial. I’ve run into this problem on my last two websites and you helped me solve it. Thanks so much.
You’re welcome, Dave! So glad I could help solve the issues!
Super awesome tutorials. Using flex layout techniques is super easy. Thanks for the tips.
You’re welcome, Aiman! I’m glad you like the tutorials!
Is there any way to get this to work inside the builder as well? As currently I have to exit the builder to test it.
CSS is usually not affected in the Visual Builder, so no. The only way to get this live is in our Divi Responsive Helper plugin.
a few issues I have noticed with this method. Unless you explicitly enable the screens size option and add the custom css to MOBILE ONLY, it doesn’t work. If you just add it to custom CSS in general, it does nothing. I also have to add it to EVERY ROW, even though I only need it on alternate rows. So as most people do, I alternate the image and text column on each row. Row 1 image left, text right Row 2 text left image right So technically I only need to change the stacking order on the even rows… Read more »
Correct, you need adjust this on Tablet and/or Phone, so that is not an issue. What you mentioned about odd and even rows is an issue but not with Divi, must be something weird going on with your site.
Hi Nelson – thanks for all your amazing tutorials Should this code work or tablet as well as mobile if i change the orfer in both I just can’t seem to get it to work at all – its the first one of yur snippets I’ve had a brain freeze about with the code i assumed anything that was specified as column 1 would be on the left desktop and top tablet and mobile and anything specified column 2 would be on the right on desktop and below on tablet and mobile BASICALLY I a layout lat alternates pic left… Read more »
Hi Kenin,
The way Divi usually works is the larger devices carries over to the smaller. You should be able to change the order as you want for Desktop, Tablet, and Phone.
Don;t you just need to enable “equalise column heights” on the row to enable flex?
Yes but that would be an extra step. Still need my CSS flex wrap, so yeah, an extra step.
Fix works, then after save doesn’t stick. ???
Hi John, not sure what you mean, the code is not there when you go back in to the builder?
The code is there in the right places even after edit, yet it won’t stack in the order I told it to. Two columns in a row in a section.
Left column order2, right order1. Since adding this code it also messed up the viewport display on mobile and wants to horizontally scroll for the right column.
Here is the page.
https://www.uhsm.com/health-share-programs/
Argh, it’s working now. horizontally scroll may be something else
This works perfectly. HOWEVER, I spent a good 10 minutes messing around with it NOT working. The key thing to know is that it won’t show in the order you want IN THE VISUAL BUILDER. You have to exit and then it displays in the order you want.
Thanks a million.
I love the simplicity of this solution! No need for CSS classes or plugins.
Yes it is a great solution!