How to Hide Sections on Mobile?

Solved

How to Hide Sections on Mobile?

bratslaps
Tourist
9 0 1

Hello, I'm trying to make this wave hidden on mobile. As you can see the wave is different on mobile, so I want to hide it only on mobile. So I can create a new wave for mobile only. 

 

Screenshot 2024-12-13 011918.png

 

Screenshot 2024-12-13 011929.png

 My website is www.bratslaps.com, this is the blog page.

Accepted Solution (1)
asharofficial
Excursionist
41 5 16

This is an accepted solution.

here is the solution do these steps @bratslaps 

Steps to Add Custom CSS in Shopify

  1. From your Shopify admin, go to Online Store > Themes.
  2. Click Actions for the theme you want to edit, then select Edit code.
  3. Find the base.css file under Assets (or whichever CSS file your theme uses).
  4. Scroll to the bottom of the file and add the following CSS code:
@media (max-width: 768px) { /* Adjust the max-width for your mobile breakpoint */
    [class^="wave-body-template"] {
        display: none;
    }
}

 

asharofficial_0-1734075603940.png

 

Element hide on mobile

 Looking for skilled Shopify developers? Hire Me WhatsApp: +92 334 387 4850


Support me: Buy me a coffee


 If this solved your problem, I’d truly appreciate it if you could show some love by liking this or marking it as the solution! 


View solution in original post

Replies 9 (9)
bratslaps
Tourist
9 0 1

asharofficial
Excursionist
41 5 16

Hi @bratslaps 
I  didn't see any waves on the live site, you can do this with the help of CSS easily also you can change the image in the mobile version through media queries.

 

asharofficial_0-1734075008100.png

 

 Looking for skilled Shopify developers? Hire Me WhatsApp: +92 334 387 4850


Support me: Buy me a coffee


 If this solved your problem, I’d truly appreciate it if you could show some love by liking this or marking it as the solution! 


bratslaps
Tourist
9 0 1

what are media queries? i don't know a thing about CSS so it's not so easy for me! Haha. the waves are live now, i forgot i was still editing

asharofficial
Excursionist
41 5 16

This is an accepted solution.

here is the solution do these steps @bratslaps 

Steps to Add Custom CSS in Shopify

  1. From your Shopify admin, go to Online Store > Themes.
  2. Click Actions for the theme you want to edit, then select Edit code.
  3. Find the base.css file under Assets (or whichever CSS file your theme uses).
  4. Scroll to the bottom of the file and add the following CSS code:
@media (max-width: 768px) { /* Adjust the max-width for your mobile breakpoint */
    [class^="wave-body-template"] {
        display: none;
    }
}

 

asharofficial_0-1734075603940.png

 

Element hide on mobile

 Looking for skilled Shopify developers? Hire Me WhatsApp: +92 334 387 4850


Support me: Buy me a coffee


 If this solved your problem, I’d truly appreciate it if you could show some love by liking this or marking it as the solution! 


bratslaps
Tourist
9 0 1

ah thank you so much! forgive me if stupid questions, but how do i find what my mobile breakpoint is to adjust it?

asharofficial
Excursionist
41 5 16

For mobile and tablets break points start from 768px

  • 576px (small)
  • 768px (medium)
  • 992px (large)
  • 1200px (extra-large)

 

 

 Looking for skilled Shopify developers? Hire Me WhatsApp: +92 334 387 4850


Support me: Buy me a coffee


 If this solved your problem, I’d truly appreciate it if you could show some love by liking this or marking it as the solution! 


bratslaps
Tourist
9 0 1

thank you for your help, i see it disappeared now. thanks!!!

asharofficial
Excursionist
41 5 16

Let me know if you need any further assistance ❤️

 Looking for skilled Shopify developers? Hire Me WhatsApp: +92 334 387 4850


Support me: Buy me a coffee


 If this solved your problem, I’d truly appreciate it if you could show some love by liking this or marking it as the solution! 


Dan-From-Ryviu
Shopify Partner
10793 2133 2251

Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings.

@media (max-width: 749px) {
#shopify-section-template--18707655098593__image_banner_8CCDJj { display: none; }
}

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.