What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Hero image size responsive

How to adjust hero image size for optimal responsiveness on Refresh theme?

pf2022
Excursionist
53 0 9

Hey there 

I recently switched to "Refresh" theme and we are really happy with this. But the hero image is making some trouble. Do you know what the proper size is in this theme? It looks perfect on my laptop, but on my phone, its way too small. 🙂 

www.portivnsflasken.dk
296738586_621997782626010_8169161106061749025_n.jpegSkærmbillede 2022-08-09 kl. 08.03.19.png

Reply 1 (1)

Sphurti
Shopify Partner
79 9 11

you need to add different image setting for mobile image 


css:
@media screen and (min-width: 750px){
.destop-hide{display:none;}}//add this class for desktop image div
@media screen and (max-width: 749px){
.mobile-hide{display:none;}}//add this class for mobile image div
in schema :
{ "type": "image_picker", "id": "mob-image", "label": "mobile Image" }
<div class="destop-hide"><img src="{{ section.settings.mob-image" }}"></div>