Jump to content

Adjusting Video Banner in the Bedford Template

Recommended Posts

Hello!  I am looking for some code that can adjust the video banner on the Home Page so that it fills up the entire page, no matter what screen size you are viewing it from.  I am working in 7.0 in the Bedford template.  I have included a sample website screenshot of how I want it to look and also included a screenshot of the current website I am working on.  I have added blank lines in the Page Settings description field, to get it to a decent height, but I am getting a black border along the top and bottom when I switch screen sizes.  Is there a code that will make it scale accordingly on different screen sizes, mobile included?  My clients want it to look like the sample screenshot (so that when you click on the page, the video banner is the only thing you see before you start scrolling).

Thank you in advance for any guidance!

sample_screenshot.jpg

website_screenshot.jpg

Link to comment

Thanks @tuanphan!  The size looks great, I just can't seem to get rid of the black box along the top and bottom.  The new code you supplied looked great when the screen was maximized, but when the screen was restored down to a smaller size, the black border appeared.  And it still appears on mobile and tablet.  Is there a code that tells the video to scale according to screen size?  And what about that black border...I can't figure out what that is and how to edit the color in the style editor?

Sorry for the hassle, but I do appreciate your help!

Link to comment
On 9/19/2023 at 8:05 PM, hollykdesign said:

Thanks @tuanphan!  The size looks great, I just can't seem to get rid of the black box along the top and bottom.  The new code you supplied looked great when the screen was maximized, but when the screen was restored down to a smaller size, the black border appeared.  And it still appears on mobile and tablet.  Is there a code that tells the video to scale according to screen size?  And what about that black border...I can't figure out what that is and how to edit the color in the style editor?

Sorry for the hassle, but I do appreciate your help!

Can you send video file & let me know which template do you use? I will test some code on the template

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

 

Hi @tuanphan!  Thank you for all of your help!  I am using the Bedford template in 7.0.  The site is now live and the url is sanduskycc.org. I have a code injection in the header for the secondary navigation bar at the top...not sure if this will effect what you are doing. I will supply that code just in case.

<div class="nav nav-secondary-wrapper">
  <nav aria-label="Header Secondary Nav">
    <ul class="nav-secondary">
      <li class="nav-secondary-item">
        <a href="/news">News</a>
      </li>
      <li class="nav-secondary-item">
        <a href="/calendar">Calendar</a>
      </li>
      <li class="nav-secondary-item">
        <a href="/support">Support</a>
      </li>
    </ul>
   </nav>
</div>

The video url is 

 

Link to comment
19 hours ago, hollykdesign said:

 

Hi @tuanphan!  Thank you for all of your help!  I am using the Bedford template in 7.0.  The site is now live and the url is sanduskycc.org. I have a code injection in the header for the secondary navigation bar at the top...not sure if this will effect what you are doing. I will supply that code just in case.

<div class="nav nav-secondary-wrapper">
  <nav aria-label="Header Secondary Nav">
    <ul class="nav-secondary">
      <li class="nav-secondary-item">
        <a href="/news">News</a>
      </li>
      <li class="nav-secondary-item">
        <a href="/calendar">Calendar</a>
      </li>
      <li class="nav-secondary-item">
        <a href="/support">Support</a>
      </li>
    </ul>
   </nav>
</div>

The video url is 

 

Thank you. Do you have a video file? I want to upload it to test site to test with Code Block?

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
  • 2 weeks later...
  • 2 weeks later...
20 hours ago, hollykdesign said:

Hi @tuanphan, thank you, the border does not appear there!  Does it matter that it is not the same template I used?  And can the original quality video be used?

Thank you again for your help!

Here I added video with Code Block

You can add a Code Block > Paste this code

<video autoplay>
  <source src="/s/test-video.mp4" type="video/mp4">
</video>

with /s/test-video.mp4 is video url

suppose your video name is test-video.mp4

you can follow this guide to upload video

https://support.squarespace.com/hc/en-us/articles/205813928-Uploading-and-managing-files

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
On 10/17/2023 at 5:46 AM, tuanphan said:

Hi @tuanphan thank you for your reply!  I can't upload the file because it is larger than 800MB.  Do you think the original video can be edited somehow on YouTube and that could fix the border issue?  This is turning out to be a real hassle!  Apologies for the never-ending questions!

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.