try this code
@media only screen and (max-width: 767px) {
.grid.sm-grid-cols-2 {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
}
.col-sm-order-2 {
grid-row: 2;
}
}
Goal: On Taiga theme’s homepage “Image with text” section, show text above the image on mobile only, while keeping the side-by-side layout on desktop.
What was tried:
Working solution (confirmed):
Notes:
Status: Resolved. The OP confirmed the media-query flex solution works.
try this code
@media only screen and (max-width: 767px) {
.grid.sm-grid-cols-2 {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
}
.col-sm-order-2 {
grid-row: 2;
}
}