Embedded link not showing properly

  • Unknown's avatar

    I’m trying to embed a link to an AirBnB in the blog, so i’m using the custom HTML block and HTML code copied from the AirBnB share link. When i do this in the post editor and go to preview the listing shows up perfectly–just how i would expect. When i publish the blog though and go to read it the AirBnB listing is just showing as a link with no pictures/reviews etc

    WP.com: Yes
    Jetpack: No
    Correct account: Yes

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there!

    It’s possible the code you’re trying to use is not supported without a plugin-enabled WordPress.com site. You can see the types of code allowed here:

    WP
    Code
    4 min read
    Most sites on WordPress.com use a shared environment, meaning that they all run the same software. This is great because it allows us to update millions of sites at the same time. It means we can fix bugs or offer new features very quickly, which is a win for you as users. Running multiple sites on the same software can also be dangerous. If we aren’t careful, one site can be used to take d

    Can you share the code with us (use the Code block when replying so that the actual code is displayed)? We will be able to confirm if the code is supported.

    Thanks!

  • Unknown's avatar
    <div class="airbnb-embed-frame" data-id="14324561" data-view="home" style="width: 450px; height: 300px; margin: auto;"><a href="https://www.airbnb.com/rooms/14324561?guests=1&amp;adults=1&amp;s=66&amp;source=embed_widget">View On Airbnb</a><a href="https://www.airbnb.com/rooms/14324561?guests=1&amp;adults=1&amp;s=66&amp;source=embed_widget" rel="nofollow ugc">Cottage in Grundarfjörður · ★4.78 · 1 bedroom · 2 beds · 1 bath</a>https://www.airbnb.com/embeddable/airbnb_jssdk</div>
  • Hi there, sorry but this code is not supported on free WordPress.com sites since it uses javascript, which is a common vector for attack. Because your free site uses shared resources we block all javascript embeds for security reasons since an exploit could quickly compromise millions of sites.

    If you wish to use this embed it is possible by upgrading to our Business or Commerce plans. Sites that use either of these plans have dedicated server resources (that are not shared) and will permit you to upload any plugin or theme “designed for WordPress” as well as access source code via SFTP, and add embed codes such as the one you have shared above.

    Hope that helps. Please let us know if you have any more questions.

  • The topic ‘Embedded link not showing properly’ is closed to new replies.