A user wants to display different “Image with Text” sections on mobile versus desktop versions of their Shopify store, similar to how they previously handled slideshows using CSS media queries.
Initial Approach:
The user successfully used CSS with @media (max-width: 749px) to hide/show different slideshows but couldn’t adapt this method for Image with Text sections.
Solution Provided:
Create two separate Image with Text sections (one for mobile, one for desktop) and publish both.
Add custom CSS code to the theme.liquid file (above the </body> tag) that uses media queries to control visibility:
First section displays on mobile only
Second section displays on desktop only
Outcome:
The solution worked successfully for the user’s homepage sections.
While the user initially preferred adding code via the custom CSS panel (shown in attached screenshot), they accepted the theme.liquid approach as effective.
The discussion is resolved with a working implementation.
Summarized with AI on October 31.
AI used: claude-sonnet-4-5-20250929.
Hi, I am looking for a way to have two different Image with Text sections on the mobile and desktop version of my website. I’ve done the same with a slideshow by adding a custom CSS to two different slideshows. The custom CSS for the slideshow is:
Just simply create two sections, one for desktop and one for mobile and keep them published and once that’s done then share your store url and password if enabled then I can provide you a code.
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.