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 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide 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. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? 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. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide 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. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? 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