image with text section - how to move text above image (instead of after) in mobile view?

Solved

image with text section - how to move text above image (instead of after) in mobile view?

MEIS
Visitor
2 0 2

Under my products on my products page ( my site is https://9bf815-10.myshopify.com/products/deep-groove-ball-bearings, using Dawn Theme) I have a "multirow" section inserted.

 

However, for just for mobile I would like to make a change so that the text appears first followed by the image - currently the image is first and the text is then underneath and i want to keep the text and image side by side in desktop

 

Is there a simple custom code I could add that would make just this specific image with text section reverse order for mobile view?

 

f8eff2c9-5254-40bd-893c-e3814bfbe782.JPG

Thank you so much in advance!

Accepted Solution (1)

dws_pvt_ltd
Shopify Partner
330 65 92

This is an accepted solution.

Hello @MEIS, Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open base.css" OR "theme.css".
6. Add the following code at the end of the file.

Or you can add this CSS in your "image-with-text.liquid" section file.

 

 

@media only screen and (max-width:749px){
    .image-with-text__grid {
        display: flex;
        flex-direction: column-reverse;
    }   
}

 

 

dws_pvt_ltd_0-1726059125922.png

 

 

Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.

View solution in original post

Replies 3 (3)

dws_pvt_ltd
Shopify Partner
330 65 92

This is an accepted solution.

Hello @MEIS, Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open base.css" OR "theme.css".
6. Add the following code at the end of the file.

Or you can add this CSS in your "image-with-text.liquid" section file.

 

 

@media only screen and (max-width:749px){
    .image-with-text__grid {
        display: flex;
        flex-direction: column-reverse;
    }   
}

 

 

dws_pvt_ltd_0-1726059125922.png

 

 

Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.
MEIS
Visitor
2 0 2

It worked! Thank you so much! 

BSS-TekLabs
Shopify Partner
2350 702 828

- Here is the solution for you @MEIS 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media only screen and (max-width: 600px) {
.image-with-text:not(.collapse-corners,.image-with-text--overlap) .image-with-text__media-item {
    order: 1 !important;
}
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1726058985970.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now