Banner desktop & mobile view

Solved

Banner desktop & mobile view

jeffreym
Pathfinder
133 2 25

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.Screenshot 2025-01-12 at 8.16.43 PM.png

 

 

2.Screenshot 2025-01-12 at 8.16.47 PM.png



Accepted Solution (1)
DaisyVo
Shopify Partner
3690 403 489

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

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 3 (3)

DaisyVo
Shopify Partner
3690 403 489

Hi @jeffreym 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

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;
    }
}

 

 
I hope this helps
 
Best,
 
Daisy
Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
jeffreym
Pathfinder
133 2 25

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;
}

DaisyVo
Shopify Partner
3690 403 489

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

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution