Jump to content

Airbnb Embed Code No Displaying Correctly

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://octahedron-grasshopper-7fpn.squarespace.com/properties

I'm setting up a website for my real estate and short term rental management business. On our properties page I want to display our Airbnb properties. Airbnb provides an HTML code to embed on your website to display a widget for your listing. However, when I embed the code in the code block, it just displays the code. If you go to this link and scroll down you'll see the code: https://octahedron-grasshopper-7fpn.squarespace.com/properties

Link to comment
  • Replies 5
  • Views 470
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Have you tried set this code into a new block  in code block?

image.thumb.png.8ce27565c1f88bb6bd35bdd1eca55e14.png

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

I mean adding your codes like this

<script>...</script>
<div>...</div>

 

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
1 hour ago, bangank36 said:

I mean adding your codes like this

<script>...</script>
<div>...</div>

 

Sorry, I'm very much a novice who googles a lot when it comes to coding. So I'm not sure what you mean. Would you be willing to paste how the code should be so I know what you mean?

Link to comment
  • Solution

You can try

<script async="" src="https://www.airbnb.com/embeddable/airbnb_jssdk"></script>
<div class="airbnb-embed-frame" data-id="621177625280156656" data-view="home" style="width:450px;height:300px;margin:auto"><a href="https://www.airbnb.com/rooms/621177625280156656?guests=1&amp;adults=1&amp;s=66&amp;source=embed_widget">View On Airbnb</a><a href="https://www.airbnb.com/rooms/621177625280156656?guests=1&amp;adults=1&amp;s=66&amp;source=embed_widget" rel="nofollow">Lovely &#x27;Laurel Lie&#x27; Treetop Mountain Cabin</a></div>

 

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.