WordPress.org

Ready to get started?Download WordPress

Forums

Badge from Airbnb not working (2 posts)

  1. cheapLAhousing
    Member
    Posted 2 years ago #

    I am trying to add a badge from a website (airbnb.com) to my blog. I assume this is like an Amazon badge or any other badge that uses <script> to look right. (code is below).

    Anyway, it doesn't look right, basically it looks as if javascript is not working. I looked around the help pages but it was all greek to me. Surely WordPress can accept a copy and paste badge from 3rd party sites easily. Am I missing something simple?

    Here is the code:

    <!-- Airbnb Widget Start -->
    <div id="airbnb-widget-281256" class="airbnb-widget wide"><div class="airbnb-thumbnail-container"><div class="airbnb-thumbnail"><a href="http://www.airbnb.com/rooms/281256?af=1273813&c=wg1"><img alt="Hollywood / Downtown, Private Room " class="airbnb-widget-thumbnail-img" id="airbnb-widget-thumbnail-img-281256" src="http://a0.muscache.com/pictures/3578912/small.jpg" /></a></div></div><div class="airbnb-listing-info"><img alt="Airbnb Logo" class="airbnb-logo" src="http://www.airbnb.com/images/logos/106x40.png"><a href="http://www.airbnb.com/rooms/281256?af=1273813&c=wg1">Hollywood / Downtown, Private Room </a><div id="airbnb-widget-stars-281256" class="airbnb-widget-stars"></div><a href="http://www.airbnb.com/rooms/281256?af=1273813&c=wg1">Book Online</a></div><div class="airbnb-widget-tagline"><p><a href="http://www.airbnb.com/united-states?af=1273813&c=wg1">Find an apartment to stay in Los Angeles</a></p></div></div><link href="http://www.airbnb.com/stylesheets/sharing_widget.css" media="screen" rel="stylesheet" type="text/css" /><script src="http://www.airbnb.com/javascripts/badgify.js" type="text/javascript"></script><script type="text/javascript" src="http://www.airbnb.com/rooms/badge/281256?callback=AirbnbWidget.updateContent"></script>
    <!-- Airbnb Widget End -->

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

  2. ip00
    Member
    Posted 2 years ago #

    I tried adding Airbnb widget to a site two days ago. It looks weird because stylesheet specified in widget code is missing from Airbnb server.

    404 Not found: http://www.airbnb.com/stylesheets/sharing_widget.css

    Warned Airbnb about this but two days later there's still no reply. Tried to find cached version of sharing_widget.css somewhere but also without success.

    This is not WordPress related issue.

Topic Closed

This topic has been closed to new replies.

About this Topic