Shopify themes, liquid, logos, and UX
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,
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.
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
Best,
Liz
I did it but it doesn't work 😞
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.
It doesn't work.. 😞 I can't understand why
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025