Jump to content

Syntax Error LINE 1

Recommended Posts

Hi guys, I am trying to add a ResDiary widget to my website, everytime I go to the custom css and paste the code I get the error message Syntax Error On Line 1... Here's the code, anyone know why this is happening?

<div id="rd-widget-frame" style="max-width: 285px; margin: auto;"></div>

<input id="rdwidgeturl" name="rdwidgeturl" value="https://booking.resdiary.com/widget/FixedSize/TheRose/913?includeJquery=false" type="hidden">
<script type="text/javascript" src="https://booking.resdiary.com/bundles/WidgetV2Loader.js"></script>

Link to comment
  • Replies 3
  • Views 418
  • Created
  • Last Reply

Top Posters In This Topic

13 minutes ago, crmedia said:

everytime I go to the custom css and paste the code I get the error message Syntax Error On Line 1

The Custom CSS panel is for CSS only, whereas the code you've quoted is HTML so must be added to a Code Block. 

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment
7 hours ago, crmedia said:

I've added the code block to the page and added the code but it just says 'script disabled'

As a security measure, scripts will not run in a code block when you’re logged in. The 'script disabled' message is trying to explain this, but it isn't a very friendly message.

To test the script, visit your site in an incognito browser without logging in.  

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

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.