Jump to content

marsharosenblatt

Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by marsharosenblatt

  1. Yes! Well, a coder friend of mine did. 1) This is the coding for embedding on the particular page. Go to pages, click the settings icon next to it, click advanced, and enter it in the window "Page Header Code Injection" (I've left my wesbite and twitch channel in the code - you'll want to change that) <!-- Load the Twitch embed script --> <script src="https://embed.twitch.tv/embed/v1.js"></script> <div class="twitch"> <div class="twitch-video"> <iframe src="https://player.twitch.tv/?channel=ioustudio&parent=www.marsharosenblatt.com&parent=marsharosenblatt.com&parent=cardioid-fish-nwmk.squarespace.com&autoplay=false" frameborder="0" scrolling="no" allowfullscreen="true" height="100%" width="100%"> </iframe> </div> <div class="twitch-chat"> <iframe frameborder="0" scrolling="no" src="https://www.twitch.tv/embed/ioustudio/chat?parent=www.marsharosenblatt.com&parent=marsharosenblatt.com&parent=cardioid-fish-nwmk.squarespace.com" height="100%" width="100%"> </iframe> </div> </div> 2) Click Design, scroll to the bottom and click Custom CSS: /* start philna.sh twitch code */ .twitch { margin-top: 38vw } .twitch .twitch-video { padding-top: 56.25%; position: relative; height: 0; } .twitch .twitch-video iframe { position: absolute; width: 100%; height: 100%; top: 0; } Hope this helps!
  2. Site URL: https://www.marsharosenblatt.com I am attempting to embed the coding for a Twitch live stream onto my website. It's my friends' Twitch account, and they sent me the following embed code: <script src= "https://player.twitch.tv/js/embed/v1.js"></script> <div id="<player div ID>"></div> <script type="text/javascript"> var options = { width: <1920>, height: <1080>, channel: "<ioustudio>", video: "<video ID>", collection: "<collection ID>", // ["ioustudio.com", "marsharosenblatt.com"] }; var player = new Twitch.Player("<player div ID>", options); player.setVolume(0.5); </script> When I try to add it through the embed window of the video block, it says "invalid video embed" and when I do it through an embed block it says "script disabled". Any insight? Thank you
×
×
  • 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.