Stephking2023 Posted January 1 Share Posted January 1 (edited) Hi! Site PW: Tianaturopathy I've embedded code to link to a Cliniko booking page but something in the code is creating too much blank space underneath it. <iframe id='cliniko-28006363' src='https://tia-naturopathy.au3.cliniko.com/bookings?embedded=true' frameborder='0' scrolling='auto' width='100%' height='1000' style='pointer-events: auto;'></iframe> <script type='text/javascript'> window.addEventListener('message', function handleIFrameMessage (e) { var clinikoBookings = document.getElementById('cliniko-28006363'); if (typeof e.data !== 'string') return; if (e.data.search('cliniko-bookings-resize') > -1) { var height = Number(e.data.split(':')[1]); clinikoBookings.style.height = height + 'px'; } e.data.search('cliniko-bookings-page') > -1 && clinikoBookings.scrollIntoView(); }); </script> I'm unable to move the text higher or make the section more flush. Are you able to help? Thanks! Steph Edited January 1 by Stephking2023 missing link Link to comment
Beyondspace Posted January 2 Share Posted January 2 15 hours ago, Stephking2023 said: Hi! Site PW: Tianaturopathy I've embedded code to link to a Cliniko booking page but something in the code is creating too much blank space underneath it. <iframe id='cliniko-28006363' src='https://tia-naturopathy.au3.cliniko.com/bookings?embedded=true' frameborder='0' scrolling='auto' width='100%' height='1000' style='pointer-events: auto;'></iframe> <script type='text/javascript'> window.addEventListener('message', function handleIFrameMessage (e) { var clinikoBookings = document.getElementById('cliniko-28006363'); if (typeof e.data !== 'string') return; if (e.data.search('cliniko-bookings-resize') > -1) { var height = Number(e.data.split(':')[1]); clinikoBookings.style.height = height + 'px'; } e.data.search('cliniko-bookings-page') > -1 && clinikoBookings.scrollIntoView(); }); </script> I'm unable to move the text higher or make the section more flush. Are you able to help? Thanks! Steph Can you share your URL site with the protected password so I can take a look? Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you 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