Jump to content

Embed Blocks: Youtube embed code not consistently displaying vertical videos

Recommended Posts

Posted

Hello,

I am using embed blocks to display YouTube videos vertically on this page:

https://www.threedom.com

I am doing the same exact thing everytime...get YT embed code, change dimensions and paste in the Code Snippet area...

It words for some of the videos and not for others as you will see...below are embed codes for the video that displays correctly and for the one that doesn't...it's the same issue for both large and small videos on the referenced page.

Displays correctly:

<iframe width="240" height="427" src="https://www.youtube.com/embed/c6dKXSHOb74" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Does not display correctly:

<iframe width=“240” height=“427” src="https://www.youtube.com/embed/lrWafnHzW_U" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Thank you!

Muhsin

 

  • Replies 1
  • Views 781
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

 

I did not solve the issue but have a temporary workaround that is actually pretty efficient. I simply duplicate the embed/video block that is displaying correctly and change only the small unique code after embed/ in the link and it works perfectly and displays correctly.

I am super curious why the exact code is inconsistently displaying the embedded video.

Any insights would be appreciated!

Image 10-19-22 at 4.15 AM.JPG

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.