Jump to content

Scorestream - Code Works on Squarespace 7.0, but not 7.1

Recommended Posts

Site URL: https://www.ecwolverines.com/home

The following code has been used for 6 years on the Squarespace 7.0 site. Recently this past month I have updated to Squarespace 7.1, and unfortunately the code no longer works. The code is exactly the same and just copy and past from the previous.

 

Below is the code (javascript) that is used by Scorestream. When pasted in Code Block and choosing Javascript using 7.1, the code still does not work.

 

Attached is a photo of what the widget is supposed to look like display wise.

 

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

scorestream.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 8/8/2022 at 9:50 AM, ECWolverines said:

When pasted in Code Block and choosing Javascript using 7.1, the code still does not work.

The code you've quoted is HTML, not JavaScript. This is a common misconception because the HTML is being used to load a JavaScript file 🙂

Change the setting and ensure the view source option is disabled and you'll be able to check if the code works as expected.

Edited by paul2009

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
On 8/8/2022 at 9:14 AM, paul2009 said:

The code you've quoted is HTML, not JavaScript. This is a common misconception because the HTML is being used to load a JavaScript file 🙂

Change the setting and ensure the view source option is disabled.

I've tried that option as well and had the view source option disabled. I contacted Squarespace before leaving this post here.

The person replying said it specifically was javascript after I said it was originally HMTL source. They also mentioned that they said to contact ScoreStream about something called "oEmbed standard" which I am not sure what they are referring too.

So back to square one, where this code does not work either way Java or HTML in the code block.

Link to comment
33 minutes ago, ECWolverines said:

The person replying said it specifically was javascript after I said it was originally HMTL source. So back to square one, where this code does not work either way Java or HTML in the code block.

Sadly they are wrong, but it's understandable because Squarespace don't provide assistance with HTML or JavaScript so the representative wouldn't necessarily understand the difference. Regardless, I recommend that you use this instead:

<iframe src="https://scorestream.com/widgets/scoreboards/horz?userWidgetId=44688"  style="padding:0px;border:0px;width:100%;max-width:100%;height:100%;max-height:100%;min-width:100%;" title="Realtime sports scoreboard widget" scrolling="no" frameborder="0"></iframe> 

image.thumb.png.9f44fdcf175f61ee3e4b7dae15d788fd.png

image.thumb.png.39a60728cfa41442c458fbeabc9ac9fa.png

 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.