Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Can anyone tell me why my AirBNB widget isn't working?



Site URL: https://www.worthdrivingfor.com/blog/2020/now-i-have-a-travel-category

I'm doing a food and travel blog, and I want to add an AirBNB associate widget to my site to book the place I'm talking about. It shows up as "Script disabled" like normal when I'm editing, but when I'm done editing, it only displays as an empty box. 

I'm actually half decent at code (python in particular), but I don't know enough about HTML to spot any obvious problems. The code does work though, because I can run it in a code editor and get exactly the expected output. 

Other HTML code, such as Adsense and Amazon Ads displays fine. 

Here's the Ad code:

<div><script src="https://www.airbnb.com/embeddable/airbnb_jssdk" async=""></script><div class="airbnb-embed-frame" data-view="a4p_collection_embeddable" data-id="99584"></div></div>

Here's the page in question: https://www.worthdrivingfor.com/blog/2020/now-i-have-a-travel-category

I'll attach an image of the code running properly in a code editor. Can anyone who's better at HTML tell me why this isn't working? The site is using SSL, but the link is https, so that shouldn't be an issue. 

Screen Shot 2020-09-06 at 9.10.43 AM.png

Link to post
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

3 answers to this question

Recommended Posts

  • 0

Just tested on my site, not working.

Where did you get the code? Can you describe in detail?

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post
  • 0
26 minutes ago, tuanphan said:

Just tested on my site, not working.

Where did you get the code? Can you describe in detail?

From the AirBNB associate program website. Just like amazon or google you can design an ad/widget and they spit out the code to copy and paste. I feel a screenshot describes it better. 

If the code just doesn't work, that at least answers my question, I was just stumped because it runs in CodeRunner. 


Screen Shot 2020-09-06 at 10.41.36 AM.png

Link to post

Create an account or sign in to comment

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

  • Create New...