Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

DAWN Theme: different picture for PC and Mobile

DAWN Theme: different picture for PC and Mobile

okw_mamba
Visitor
2 0 0

There is one really good solution by @LitCommerce available but unfortunately the quality of the banner declines after implementing it. Does someone have a fix?

 

 

Replies 4 (4)

LitCommerce
Astronaut
2860 684 761

Hi @okw_mamba,

Can you describe it, I will help you check it

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

LitCommerce
Astronaut
2860 684 761

Hi @okw_mamba,

Go to sections > image-banner.liquid file and change code here:

Screenshot.png

Code for image 1:

<img
        srcset="{{ section.settings.image | img_url: 'master' }} {{ section.settings.image.width }}w"
        src="{{ section.settings.image | img_url: 'master' }}"
        loading="lazy"
        alt="{{ section.settings.image.alt | escape }}"
        width="{{ section.settings.image.width }}"
        height="{{ section.settings.image.width | divided_by: section.settings.image.aspect_ratio }}"
        {% if section.settings.image_2 != blank %}class="banner__media-image-half"{% endif %}
      >

Code for image 2:

<img
        srcset="{{ section.settings.image_2 | img_url: 'master' }} {{ section.settings.image_2.width }}w"
        src="{{ section.settings.image_2 | img_url: 'master' }}"
        loading="lazy"
        alt="{{ section.settings.image_2.alt | escape }}"
        width="{{ section.settings.image_2.width }}"
        height="{{ section.settings.image_2.width | divided_by: section.settings.image_2.aspect_ratio }}"
        {% if section.settings.image != blank %}class="banner__media-image-half"{% endif %}
      >

Hope it helps!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
okw_mamba
Visitor
2 0 0

Hi, thanks for the code. Is that to be combined with the code from your previous answer?

 

LitCommerce
Astronaut
2860 684 761

Hi @okw_mamba,

Yes, it will combine with my previous answer.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!