Jump to content

Blank space under code can you help?

Recommended Posts

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

Screenshot 2023-01-02 at 09.22.25.png

Edited by Stephking2023
missing link
Link to comment
  • Replies 1
  • Views 274
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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

Screenshot 2023-01-02 at 09.22.25.png

Can you share your URL site with the protected password so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.