Display content on mobile or desktop only

Shopify Expert
9965 84 1467

@Peter - You'd be looking for media queries. It allows you to set styles for elements based on the screen size. See more at the link below:
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
New Member
11 0 0

Hi Jason,

I don't understand much of what the link says:)

When I add the code that Caroline mentions, then I can easily exclude my image from mobile screens - but I don't know how to exclude it on tablet screens as well. Is it not possible to exclude for both tablet and mobile screens without changing or adding to the code provided by Caroline?

0 Likes
New Member
1 0 0

Where should i put this code?

In the theme.liquid - top or button?

 

0 Likes