Change column Stacking order in Divi
The Problem
We have two columns which display from Left to Right on a desktop. By default when transitioning into mobile view, the left hand column will stack above the right hand column.
Changing the stack order is straight forward
Access Row Settings
Access the settings section of the row containing the column's whose stacking order you wish to change
Add CSS To the Row, Main Element
Navigate to Advanced > Custom CSS and find the section "Main Element"
Add the following code:
display: flex; flex-wrap: wrap;
Access Column Settings
Within your Row settings, you can now access the individual column settings. You will need to do this for each column.
Change the Column Stacking Order in CSS for Mobile view
Navigate to Advances > Custom CSS and locate the "Main Element" section. Set the vier type to mobile. This is indicated by the small phone icon when hovering over the heading "main Element"
Add the following CSS:
order:N;Where N is the stacking order number, eg 2;
order:2;
Result - The order is changed on mobile view
Article published 20th September 2024
Last modified 20th September 2024