• Hi All, I am designing a website. On the first image on home page I have used the Media & text block. But when I check on a mobile, the image goes on top and text goes at the bottom. I need to have the text on top and image on bottom. How can I fix this? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there,

    If you want the text on top and the image on the bottom, simply swap the left and right block columns in the desktop view. This change will automatically adjust in the mobile view as well. You can also preview it directly using the mobile view option.

    Regards,
    Shashank Jain


    Moderator threadi

    (@threadi)

    Unfortunately, there is currently no option to solve this without the above arrangement. However, you can also use custom CSS to help:


    @media (max-width: 600px) {
    body .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
    grid-row: 2;
    }
    }

    @media (max-width: 600px) {
    body .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content {
    grid-row: 1;
    }
    }

    This would need to be stored in the custom styles. For a block theme, you can find these under Appearance > Site Editor > Styles > Edit Styles > the 3 dots top right > Additional CSS.

    Thread Starter LS321

    (@lsingh321)

    Thank you Shashank and Threadi.

    Stef

    (@serafinnyc)

    @lsingh321 you probably have a reverse column set.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Media & Text Block’ is closed to new replies.