Shopify themes, liquid, logos, and UX
Hi there,
we're using a custom theme that is based on Shopify's Dawn Theme.
We want to display different page banners, depending on the device used (Desktop/Mobile).
The section in question is the "Image Banner", which comes with two toggles "Show container on Desktop" and "Show container on Mobile". Selecting/deselecting doesn't have any effect!
For now we are using CSS and media screen size to control which banner shows on which device. This is not optimal as both image banners are fetched by the device. In order to increase page speed we would like the devices to only fetch the correct sized image. We believed the toggles would serve this purpose, but they don't.
If anyone could point me to a tutorial or has some advice? I guess it should be a rather quick implementation using "srcset" attribution. I would still need some help with this.
Thank you!
Hi,
Can you share your store url
having the exact same issues. What's the point of these desktop/mobile settings?
You'll need to add custom CSS for each section:
@media screen and (max-width: 750px;){
.banner {display: none}}
vary min-width / max-width depending on mobile or desktop.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025