crmedia Posted September 28, 2022 Share Posted September 28, 2022 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
paul2009 Posted September 28, 2022 Share Posted September 28, 2022 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. Ziggy 1 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity 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. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
crmedia Posted September 29, 2022 Author Share Posted September 29, 2022 Hi Paul, thanks for your reply I really appreciate it. I've added the code block to the page and added the code but it just says 'script disabled' and does not display the widget button that the code is meant to show.. any idea? Thanks once again Link to comment
paul2009 Posted September 29, 2022 Share Posted September 29, 2022 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: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity 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. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment