Jump to content

Widget height to be responsive to content

Recommended Posts

I'm trying to install the embed code for our Acuity booking page into my shopify website. However the frame of the widget is not being responsive to the content, or it is making a scroll bar within a small area. 

How can I make this be responsive to the content, as it keeps extending in height as the customer journeys on to booking. 

<iframe src="https://app.acuityscheduling.com/schedule.php?owner=32172348&ref=embedded_csp" title="Schedule Appointment" width="100%" height="800" frameBorder="0"></iframe><script src="https://embed.acuityscheduling.com/js/embed.js" type="text/javascript"></script>

Link to comment
  • Replies 3
  • Views 450
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

I see you are using Shopify site

You can add this code to theme.liquid file, before </head>

<style>
  #shopify-section-template--15172804345950__main .video-wrapper {
    padding-bottom: 70% !important;
}
  @media screen and (max-width:767px) {
  #shopify-section-template--15172804345950__main .video-wrapper {
    padding-bottom: 300% !important;
}
  }
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (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.