Shopify themes, liquid, logos, and UX
I want to make image #1 only set for desktop banner and Image #2 only set for mobile view banner.
URL: hygiadental.com
PW: angel
Thankyou in advanced!
1.
2.
Solved! Go to the solution
This is an accepted solution.
Hi @jeffreym
So please try this way
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head>
{% style %}
section#shopify-section-template--17786616774756__image_banner_AxULMn {
display: none !important;
}
@media screen and (max-width: 768px){
body section#shopify-section-template--17786616774756__image_banner_AxULMn {
display: block !important;
}
section#shopify-section-template--17786616774756__image_banner_UqUCxa {
display: none !important;
}
}
{% endstyle %}
I hope this helps
Best,
Daisy
Hi @jeffreym
section#shopify-section-template--17786616774756__image_banner_AxULMn {
display: none !important;
}
@media screen and (max-width: 768px){
body section#shopify-section-template--17786616774756__image_banner_AxULMn {
display: block !important;
}
section#shopify-section-template--17786616774756__image_banner_UqUCxa {
display: none !important;
}
}
Hi when I add it to the custom css area it says: 'Online Store editor session can't be published'
I also have this code written in there
.banner__box {
background: transparent;
}
.banner__box .button {
opacity: 1;
}
This is an accepted solution.
Hi @jeffreym
So please try this way
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head>
{% style %}
section#shopify-section-template--17786616774756__image_banner_AxULMn {
display: none !important;
}
@media screen and (max-width: 768px){
body section#shopify-section-template--17786616774756__image_banner_AxULMn {
display: block !important;
}
section#shopify-section-template--17786616774756__image_banner_UqUCxa {
display: none !important;
}
}
{% endstyle %}
I hope this helps
Best,
Daisy
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025