Timboandco Posted January 30 Share Posted January 30 (edited) I've embedded this script which creates a booking button for a 3rd party system. However the button sits left aligned in the content box and I don't know enough to edit it to have it centred. The button sits in the middle of the site, so scalling makes it jump around a lot. Help? Here's the sitehttps://www.charlottecummings.nz/ <script id="setmore_script" type="text/javascript" src="https://my.setmore.com/webapp/js/src/others/setmore_iframe.js"></script><a id="Setmore_button_iframe" class="" style="float:none" href="https://booking.setmore.com/scheduleappointment/45f0b7ef-cae6-4d0c-8808-1354daa6242c"><img border="none" src="https://storage.googleapis.com/full-assets/setmore/images/1.0/Settings/book-now-blue.svg" alt="Book an appointment with Charlotte Cummings using Setmore" /></a> Edited January 30 by Timboandco Adding URL Link to comment
Solution Ziggy Posted January 30 Solution Share Posted January 30 Typically simply containing the button script in <center> tags works, like this: <center> <script id="setmore_script" type="text/javascript" src="https://my.setmore.com/webapp/js/src/others/setmore_iframe.js"></script><a id="Setmore_button_iframe" class="" style="float:none" href="https://booking.setmore.com/scheduleappointment/45f0b7ef-cae6-4d0c-8808-1354daa6242c"><img border="none" src="https://storage.googleapis.com/full-assets/setmore/images/1.0/Settings/book-now-blue.svg" alt="Book an appointment with Charlotte Cummings using Setmore" /></a> </center I would recommend that you make the code block that contains this button the full width of the canvas. Let me know if that works Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? 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