Show different images at different breakpoints

I tried to use the if statement but I don’t know what to write. I want to show one image at desktop size and another image at both smaller sizes.

Any guidance is appreciated.

Screenshot 2023-01-11 at 7.26.10 AM

Hi Carri,
You need to use the breakpoint variable, available inside the context. It can be equal to default, tablet or mobile.

Here is an example. src1 is for desktop, and src2 for tablet and mobile. Just replace src1 and src2 by your own url :slight_smile:

2 Likes

Thank you!

This works but it needed the full URL path, not just the image file name. It’s working great now.