Jump to content

Show different banner background video on mobile?

Recommended Posts

I current have a Vimeo video added to a banner on my website (added via Page Settings > Media > Video URL).

The video looks great on desktop, but on mobile the text is too wide for the mobile screen and so is chopped on each side.

Therefore I would like to add some custom code so that on mobile view, a different version of the video that I have produced that is mobile friendly (the text is stacked up more so it can fit the mobile width). I am comfortable with media queries, but am struggling the URL override.

I've done some digging around in the html and found this:

<iframe id="vimeoplayer" src="XXXXvideoURLXXXXX" style="width: 2112px; height: 1188px; left: -96px; top: -157px;" class="background-video ready"></iframe>

Which might be some use?

Any help appreciated.

Link to comment
  • 2 months later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...
On 1/6/2022 at 6:53 PM, Adam9 said:

Also having the same issue, is anyone able to help?

 

If you share link to page where you have problem, 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

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.