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
  • 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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 6 months later...
On 10/12/2022 at 5:47 PM, stefanosg said:

got the same problem 

https://owl-bluebird-et6t.squarespace.com/

password is 1234

I want some of the videos to never play on mobile 

Hi,

Which videos on homepage?

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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.