CSS problem on Palo Alto

CSS problem on Palo Alto

MaxCosta
Shopify Partner
272 2 62

I'm encountering a CSS problem on the Palo Alto theme.

The “Video” section doesn't allow me to define a specific video on mobile and desktop.

 

Site : https://b7j5376yqiuk7nhf-55480549543.shopifypreview.com


So I duplicated the Video section, masked the 1st one on mobile with this code (and it works):

 

 

@media (max-width: 768px) {
#FeaturedVideo--template--22525296509256__section_video_GT7wkw {
display: none;
}

So the first section of my site is visible on desktop and hidden on mobile.

Then I create the second section and try to hide it on desktop, but it doesn't work!


I put this code

 

 

@media (min-width: 768x) {
#FeaturedVideo--template--22525296509256__section_video_fNi4Br {
display: none !important;
visibility: hidden !important;
}

 

And it doesn't work...

Does anyone have a solution to hide the video section of my home page, only on desktop, and leave it visible on mobile?

Thanks in advance for your help,

 

Replies 6 (6)

B2Bridge
Explorer
335 67 82

Hi @MaxCosta, can you share us your store url?

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

MaxCosta
Shopify Partner
272 2 62

LizHoang
Shopify Partner
1251 159 193

Hi @MaxCosta 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file theme.css and add this code at the end of the file

 

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

 

Result 

LizHoang_0-1739958921623.png

 

Best,

Liz

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

Check our Joy Rewards & Loyalty Program
MaxCosta
Shopify Partner
272 2 62

I did it but it doesn't work 😞

B2Bridge
Explorer
335 67 82

Hi @MaxCosta, you can follow these steps:

Step 1: Open Online Store -> Themes -> Edit code

Step 2: Find the theme.css file

Step 3: Paste this code at the bottom of the file

@media (min-width: 768px) {
#shopify-section-template--22525296509256__section_video_fNi4Br,
#shopify-section-template--22525296509256__section_video_GT7wkw {
  display: none !important;
}
}  

 If this is helpful, please let us know by giving us a like and marking it as a solution. Thank you 😍

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

MaxCosta
Shopify Partner
272 2 62

It doesn't work.. 😞 I can't understand why