Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
e_robertson

Making video full width in project page gallery

Recommended Posts

Site URL: https://www.erobertson.design/

I am struggling to add Vimeo videos to my project page gallery.

I would like them to be full-width, lining with my images, but the iFrame won't fill the page width. The video ends up with a margin either side.

This is the embed code I am currently using:

<div class="video-responsive">
  <iframe allow="autoplay; fullscreen" allowfullscreen src="https://player.vimeo.com/video/[INSERT-VIDEO-CODE]?wmode=opaque" width="100%" frameborder="0"></iframe>
</div>

I'm not currently using a video thumbnail. When I use a video thumbnail, the thumbnail fills the page width, but the video still doesn't.

I am using the Jasper template.

Can anyone help?

Share this post


Link to post

There is a video at the bottom of this page, where you can see the issue:

https://www.erobertson.design/churchofsnails

I'm now using this embed code:

<div class="video-responsive">
<iframe mozallowfullscreen allowfullscreen src="https://player.vimeo.com/video/[INSERT-VIDEO-CODE]?autoplay=1&amp;loop=1&amp;autopause=0&amp;muted=1&amp;wmode=opaque" width="100%" !important webkitallowfullscreen frameborder="0" id="vimeo_player" muted></iframe>
</div>

Share this post


Link to post
On 5/15/2020 at 1:20 PM, tuanphan said:

Can you share link to an exameple page where you inserted iframe?

@tuanphan Do you have any suggestions? I'm going to take the video down if I can't find a solution.

Share this post


Link to post
1 minute ago, e_robertson said:

@tuanphan Do you have any suggestions? I'm going to take the video down if I can't find a solution.

Your page is not fullwidth, difficult to handle

Add to Home > Design > Custom CSS

/* Set full width all elements */
.collection-type-project #page {
    padding-left: 0;
    padding-right: 0;
}
/* set fullwidth iframe video */
.collection-type-project .intrinsic-inner {
    padding-bottom: 67% !important;
}
/* remove padding bottom */
.project-slide.project-slide-has-no-description.project-slide-landscape {
    padding-bottom: 0 !important;
    margin-bottom: 0;
}

 


You can send your question to my email to get faster answer. I provide free priority support in this crazy time. 

How to Setup Password & Share URL - Free Templates - Free Code - CSS ID List

Share this post


Link to post

Thank you so much! This has been driving me mad. I'm very grateful.

This middle bit of code you suggested did the trick:

/* set fullwidth iframe video */
.collection-type-project .intrinsic-inner {
    padding-bottom: 66.5% !important;
}

Share this post


Link to post

You beat me to it 🙂.  I was just about to say the same, although being specific about the video wrapper rather than the collection. The other lines shouldn't be necessary; it should work at all widths.

.sqs-video-wrapper .intrinsic .intrinsic-inner {
  padding-bottom: 66.5%!important;
}

spacer.png


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Developer and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDate Picker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links.

Share this post


Link to post
On 5/19/2020 at 3:06 PM, tuanphan said:

Your page is not fullwidth, difficult to handle

Add to Home > Design > Custom CSS


/* Set full width all elements */
.collection-type-project #page {
    padding-left: 0;
    padding-right: 0;
}
/* set fullwidth iframe video */
.collection-type-project .intrinsic-inner {
    padding-bottom: 67% !important;
}
/* remove padding bottom */
.project-slide.project-slide-has-no-description.project-slide-landscape {
    padding-bottom: 0 !important;
    margin-bottom: 0;
}

 

Hi Tuanphan & Paul,

I wondered if either or you could help me with making my clients project page display a 1 image column instead of two.

https://cbhd-dev-9ac7.squarespace.com/the-getaway-collection
PW: New-Dev!

Any help would be hugely appreciated.

Thanks

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...