Can't make a section disappear on mobile

Solved

Can't make a section disappear on mobile

DylanRyan
Excursionist
26 1 3

DylanRyan_0-1720435088190.png

 

I'm using a code in base.css to remove sections on dektsop and mobile and it has always worked until today. The first one works for hiding the section on dekstop but for some reason the second does not. Do you guys have any idea what might be causing this? I appreciate every help, thank you.

The code that I'm using (1st one works 2nd doesn't):

@media (min-width:768px) {

section#shopify-section-template--22666655236431__image_banner_whcdbA{     

display: none !important;

 

@media (max-width:768px) {

section#shopify-section-template--22666655236431__slideshow_74accQ{

display: none !important;

Accepted Solutions (2)
Moeed
Shopify Partner
4361 1123 1380

This is an accepted solution.

Hey @DylanRyan 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
section#shopify-section-template--22666655236431__slideshow_74accQ {
    display: none !important;
}
}
</style>

RESULT:

Moeed_0-1720435540334.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify Specialist? Chat on WhatsApp


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Tal19
Shopify Partner
123 22 23

This is an accepted solution.

Here is the corrected code:

 

@media (min-width: 768px) {
  section#shopify-section-template--22666655236431__image_banner_whcdbA {
    display: none !important;
  }
}

@media (max-width: 768px) {
  section#shopify-section-template--22666655236431__slideshow_74accQ {
    display: none !important;
  }
}
Need Shopify Development, Customization, or POS Support? PM Me!

View solution in original post

Replies 7 (7)

DylanRyan
Excursionist
26 1 3
Moeed
Shopify Partner
4361 1123 1380

This is an accepted solution.

Hey @DylanRyan 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
section#shopify-section-template--22666655236431__slideshow_74accQ {
    display: none !important;
}
}
</style>

RESULT:

Moeed_0-1720435540334.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify Specialist? Chat on WhatsApp


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
DylanRyan
Excursionist
26 1 3

Haven't checked yours but it probably works thank you

Moeed
Shopify Partner
4361 1123 1380

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

Need a Shopify Specialist? Chat on WhatsApp


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

Tal19
Shopify Partner
123 22 23

This is an accepted solution.

Here is the corrected code:

 

@media (min-width: 768px) {
  section#shopify-section-template--22666655236431__image_banner_whcdbA {
    display: none !important;
  }
}

@media (max-width: 768px) {
  section#shopify-section-template--22666655236431__slideshow_74accQ {
    display: none !important;
  }
}
Need Shopify Development, Customization, or POS Support? PM Me!
DylanRyan
Excursionist
26 1 3

It worked thank you so much

GTLOfficial
Shopify Partner
273 51 52

Hello @DylanRyan 
Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the bottom of the file.

@media screen and (max-width: 767px) {
.slideshow__text-wrapper.banner__content.banner__content--middle-center.page-width.banner--desktop-transparent {
display: none !important;
}
}

and the result will be
12.png


If this was helpful, hit the like button and mark the job as completed.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh