Circle001 Posted October 8, 2022 Share Posted October 8, 2022 I'm trying to add a widget in a block on the home page and when I insert the custom code it says "syntax error on line 1". This is the code: <script type="text/javascript" src="https://www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-8373894706&data-host=https://www.cqc.org.uk&type=location"></script> Can anyone tell me what the syntax error might be please? Many thanks for your help. Link to comment
Ziggy Posted October 8, 2022 Share Posted October 8, 2022 Try this: <script type="text/javascript" src="//www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-8373894706&data-host=www.cqc.org.uk&type=location"></script> Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Circle001 Posted October 8, 2022 Author Share Posted October 8, 2022 Hi Ziggy, I get the same error message unfortunately Link to comment
creedon Posted October 8, 2022 Share Posted October 8, 2022 Sounds to me like you are trying to enter the code in Design > Custom CSS. Only CSS can go there. What you have is HTML and needs to go in a code block or other location that accepts HTML. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. 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