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?


mzsigler

Question

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 comment
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

6 answers to this question

Recommended Posts

  • 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 comment
  • 0

I'm having problems with the links. Let's say I create a link for Aribnb 1. Then I go and create another link for Airbnb 2, so on and so forth. Somehow, the link (unique link) for Airbnb 1, now redirects to the latest link created i.e. Airbnb 10. I noticed this problem when creating the links. But then I managed to make it work and thought it was just my mistake. But then when I started doing a long list of Airbnbs (15 of them), like 10 of the links where redirecting to latest Airbnb! 

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...