Jump to content

Syntax Error on line 1 - I'm trying to embed live scores into my site

Recommended Posts

Site URL: https://www.nyasports.co/home-1

I'm trying to embed a score stream widget that will allow me to have live sports on my website. I would like it at the top of the home screen only. I tried using the "embed" tile feature but I only got an "Script Disabled" message. I tried customizing the ccs and i got back a  "Syntax Error on line 1" message.

I'm pretty new at this and have no idea what to do next

This is the code for the widget:

div class="scorestream-widget-container" data-ss_widget_type="horzScoreboard" data-user-widget-id="44700"></div><script async="async" type="text/javascript" src="https://scorestream.com/apiJsCdn/widgets/embed.js"></script>

 

I've also included an image of what the widget should look like

thanks again

-a

Screen Shot 2021-06-16 at 3.23.06 AM.png

Link to comment

Hi. Add a Code Block >> paste your code >> then check in preview mode.

Script disabled is default message in editing mode

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
1 hour ago, anelson said:

Site URL: https://www.nyasports.co/home-1

I'm trying to embed a score stream widget that will allow me to have live sports on my website. I would like it at the top of the home screen only. I tried using the "embed" tile feature but I only got an "Script Disabled" message. I tried customizing the ccs and i got back a  "Syntax Error on line 1" message.

I'm pretty new at this and have no idea what to do next

This is the code for the widget:

div class="scorestream-widget-container" data-ss_widget_type="horzScoreboard" data-user-widget-id="44700"></div><script async="async" type="text/javascript" src="https://scorestream.com/apiJsCdn/widgets/embed.js"></script>

 

I've also included an image of what the widget should look like

thanks again

-a

Screen Shot 2021-06-16 at 3.23.06 AM.png

Syntax seems missing opening <

<div class="scorestream-widget-container" data-ss_widget_type="horzScoreboard" data-user-widget-id="44700"></div><script async="async" type="text/javascript" src="https://scorestream.com/apiJsCdn/widgets/embed.js"></script>

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.