Reverse Column Order on Phones
Flips the stacking order of a Columns block with the class "wpide-reverse-mobile" on phones, so an image placed on the right appears above its text instead of below.
Opens WPIDE on
Code
@media (max-width: 781px) {
.wp-block-columns.wpide-reverse-mobile {
flex-direction: column-reverse;
}
}
Notes
Add wpide-reverse-mobile to the Columns block's Additional CSS class(es). Desktop order stays the same.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.