Joel1234 Posted June 15, 2023 Share Posted June 15, 2023 Hi there, I am looking to embed code for our scheduling software onto our booking page. Whenever I copy the code into the embed or code blocks nothing loads on the page (see screenshot 3). The code is as follows: <script data-origin="https://home.shortcutssoftware.com" data-company-id="" data-widget="_m" type="text/javascript" src="https://bookingscontent.shortcutssoftware.com/ols-onlinebooking-ui/assets/ols-widget/dist/ols-widget.min.js"> </script> The only way I've got the code working is when I apply to it to the code injection > footer section (see screenshot 2). When it loads it looks like this (see screenshot 1). This makes me think that the script is working but I'm missing something when I go to apply it to an embed/code block. Any help would be greatly appreciated. Link to comment
Beyondspace Posted June 15, 2023 Share Posted June 15, 2023 3 minutes ago, Joel1234 said: Hi there, I am looking to embed code for our scheduling software onto our booking page. Whenever I copy the code into the embed or code blocks nothing loads on the page (see screenshot 3). The code is as follows: <script data-origin="https://home.shortcutssoftware.com" data-company-id="" data-widget="_m" type="text/javascript" src="https://bookingscontent.shortcutssoftware.com/ols-onlinebooking-ui/assets/ols-widget/dist/ols-widget.min.js"> </script> The only way I've got the code working is when I apply to it to the code injection > footer section (see screenshot 2). When it loads it looks like this (see screenshot 1). This makes me think that the script is working but I'm missing something when I go to apply it to an embed/code block. Any help would be greatly appreciated. Place your script in the Code Block instead BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Joel1234 Posted June 15, 2023 Author Share Posted June 15, 2023 Same issue with the code block. Nothing loads when I preview. Link to comment
Beyondspace Posted June 15, 2023 Share Posted June 15, 2023 Here what I got when preview the script in safe mode and also view on live site Seems there is nothing wrong with the script placement, but the error I got indicated the script's parameters are missing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
creedon Posted June 15, 2023 Share Posted June 15, 2023 5 minutes ago, Beyondspace said: but the error I got indicated the script's parameters are missing I noticed the same error. @Joel1234 I wonder if the code was sanitized for security? Beyondspace 1 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
creedon Posted June 15, 2023 Share Posted June 15, 2023 12 minutes ago, Beyondspace said: nothing wrong with the script placement When I ran it ended up near the closing body tag. Just another data point. 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
Joel1234 Posted June 15, 2023 Author Share Posted June 15, 2023 13 minutes ago, creedon said: I noticed the same error. @Joel1234 I wonder if the code was sanitized for security? Originally yes. The full code is: <script data-origin="https://home.shortcutssoftware.com/bangonbrows" data-company-id="20462" data-widget="_m" type="text/javascript" src="https://bookingscontent.shortcutssoftware.com/ols-onlinebooking-ui/assets/ols-widget/dist/ols-widget.min.js"> </script> Link to comment
Beyondspace Posted June 15, 2023 Share Posted June 15, 2023 6 minutes ago, creedon said: When I ran it ended up near the closing body tag. Just another data point. That's is expected because the script content was made to `appendChild` on the body creedon 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Joel1234 Posted June 15, 2023 Author Share Posted June 15, 2023 45 minutes ago, Beyondspace said: That's is expected because the script content was made to `appendChild` on the body Sorry my coding experience is pretty limited. Does this mean it won't work when embedded on a page? 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