Jump to content

Want to show fallback image on mobile instead of video

Recommended Posts

Site URL: https://diedesignwerkstatt.squarespace.com/

Hi there,

I have integrated a video on the home page of my site (+ the plugin background video controls) and uploaded a mobile fallback image.

I would like the fallback image to always appear on mobile and not play the video on mobile at all.

Site is https://diedesignwerkstatt.squarespace.com/, password: test123
 
Can anyone help here?

Thank you!

Jasmin

Link to comment
  • Replies 5
  • Views 612
  • Created
  • Last Reply

Top Posters In This Topic

I answered your email 2 days ago, not sure you received it yet. Here is the code

/* Mobile view */
@media screen and (max-width:767px) {
/* top video */
[data-section-id="61eeca1c45abed068a17018b"] .content-fill>*:not(img) {
    display: none;
}
[data-section-id="61eeca1c45abed068a17018b"] .is-ready {
    display: none;
}
[data-section-id="61eeca1c45abed068a17018b"] img {
    left: -120% !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...
On 2/12/2022 at 4:32 AM, tuanphan said:

I answered your email 2 days ago, not sure you received it yet. Here is the code

/* Mobile view */
@media screen and (max-width:767px) {
/* top video */
[data-section-id="61eeca1c45abed068a17018b"] .content-fill>*:not(img) {
    display: none;
}
[data-section-id="61eeca1c45abed068a17018b"] .is-ready {
    display: none;
}
[data-section-id="61eeca1c45abed068a17018b"] img {
    left: -120% !important;
}
}

 

Hi Tuanphan, I added this code to my CSS and the video dissapeared from mobile but the image did as well. I would like to still display the image in the banner, just not the video. Did I enter the code wrong? I updated the section IDs above with my unique IDs.

Link to comment
14 hours ago, JackMacLeod said:

Hi Tuanphan, I added this code to my CSS and the video dissapeared from mobile but the image did as well. I would like to still display the image in the banner, just not the video. Did I enter the code wrong? I updated the section IDs above with my unique IDs.

What is your site url? We can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.