What's your biggest current challenge? Have your say in Community Polls along the right column.

Banner Video size mobile vs desktop

Solved

Banner Video size mobile vs desktop

bobatz
Tourist
4 0 1

Hello, I have a banner video on my homepage. Unfortunately the formatting for the desktop version looks very bad. That's why I want to set two different videos for the mobile and the desktop view. How does it work?

 

my shop: www.bitterkalt.com

Accepted Solution (1)
BSSCommerce-B2B
Shopify Partner
1969 564 566

This is an accepted solution.

@bobatz, follow these steps

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>
@media only screen and (max-width: 767px) {
  #shopify-section-template--23782627541333__section_hero_video_3mfXD3 {
    display: none;
  }
  #shopify-section-template--23782627541333__section_hero_video_bmCRkK {
    display: block;
  }
} 
@media only screen and (min-width: 768px) {
  #shopify-section-template--23782627541333__section_hero_video_3mfXD3 {
    display: block;
  }
  #shopify-section-template--23782627541333__section_hero_video_bmCRkK {
    display: none;
  }
}
</style>

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 7 (7)

BSSCommerce-B2B
Shopify Partner
1969 564 566

@bobatz, You could add two different banners next to each other. I will send you the code to hide one on desktop and show the other, and vice versa.

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

bobatz
Tourist
4 0 1

that would be fantastic! I am new to shopify. would be great if you can explain in detail what i need to do! 🙂

BSSCommerce-B2B
Shopify Partner
1969 564 566

Please add 2 different banners 1 for mobile and 1 for desktop like this

BSSCommerceB2B_0-1730036751803.png

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

BSSCommerce-B2B
Shopify Partner
1969 564 566

This is an accepted solution.

@bobatz, follow these steps

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>
@media only screen and (max-width: 767px) {
  #shopify-section-template--23782627541333__section_hero_video_3mfXD3 {
    display: none;
  }
  #shopify-section-template--23782627541333__section_hero_video_bmCRkK {
    display: block;
  }
} 
@media only screen and (min-width: 768px) {
  #shopify-section-template--23782627541333__section_hero_video_3mfXD3 {
    display: block;
  }
  #shopify-section-template--23782627541333__section_hero_video_bmCRkK {
    display: none;
  }
}
</style>

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

bobatz
Tourist
4 0 1

wow, thank you so much!!! perfect!

LizHoang
Shopify Partner
285 35 61

Hi @bobatz 

 

Would you mind sharing with me which theme that you are using now? 

 

I will assist you with your question.

 

Avada team

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
bobatz
Tourist
4 0 1

hey, I am using the Theme called Venue. I made two videos now: the first one is for the desktop version and the second one for the mobile version. Thanks in advcance!