Skip to main content

Embed your listings on your website

Show your available rentals on your own website with two lines of code.

Written by Support

You can show your available rentals on your own website. Visitors browse, filter, open a listing, book a tour and chat with River without leaving your page, and the listings update automatically as units come on and off the market.

Add the listings to a page

Paste this where the listings should appear, and replace Your-Company-Slug with your own:

<div data-lethub-listings="Your-Company-Slug"></div>
<script async src="https://app.lethub.co/assets/js/embed.js"></script>

Where do I find my company slug? On your LetHub dashboard, the Public Booking Page link is at the top right. It looks like https://app.lethub.co/#/company/Your-Company-Slug. The slug is the last part.

The Public Booking Page link at the top right of the LetHub dashboard

Most website builders have a block for this, usually called Custom HTML, Embed or Code.

💡 The listings fit your page. They take the width of the place you put them in and grow to their full length, so your page has a single scrollbar. There is no height to set.

What visitors get

  • One page, one scrollbar. The listings are part of your page, not a scrolling box inside it.

  • Your header, your branding. The LetHub company bar is left out, because your page already has one.

  • Listings open at the top. Opening a listing brings its top into view. Going back returns the visitor to where they were in the list.

  • River stays in reach. Once the listings are on screen, the chat button sits in the bottom right corner of the visitor's screen and stays there for the rest of your page, down to your footer. Book Tour opens the chat for that home.

  • Room for your own bars. If your site keeps a header or a row of buttons pinned to the screen, the chat and pop-ups stay clear of them.

Options

Add any of these to the <div>:

Option

What it does

data-width="full"

Stretches the listings across the whole browser window, even if the page column is narrower. If that column is set to hide or scroll what sticks out of it sideways, the listings keep the column's width.

data-offset-top="80"

Height in pixels of a header your site keeps pinned to the top of the screen. Only needed if listings open partly hidden behind your header.

data-offset-bottom="70"

The same for a bar pinned to the bottom of the screen.

data-min-height="640"

The smallest height of the listings area, in pixels.

data-river="page"

Shows the chat button on your whole page, not only from the listings onward.

data-river-offset-bottom="90"

Moves the chat button up by that many pixels. Use this if your site has something of its own in the bottom right corner, such as another chat button or a "back to top" arrow.

data-river-offset-right="20"

Moves the chat button left by that many pixels.

data-river="inside"

Keeps the chat button inside the listings area instead of the corner of the screen.

Example:

<div data-lethub-listings="Your-Company-Slug" data-width="full"></div>
<script async src="https://app.lethub.co/assets/js/embed.js"></script>

Troubleshooting

The listings do not appear. Check that both lines were pasted and that your website builder allows scripts in that block. Both lines have to be part of the page itself. A few builders run custom code in a sealed box of their own, where the listings cannot grow to their full length; if yours does, look for an option that adds code directly to the page, or contact LetHub support. Also load the script from the address above instead of copying the file to your own site.

A listing opens with its top hidden behind my site's header. Add data-offset-top with your header's height in pixels.

The chat button sits on top of my site's own chat button. Add data-river-offset-bottom with enough pixels to lift River above yours (for example data-river-offset-bottom="90"). On phones and other small screens (up to about 990 pixels wide), River's open chat still covers the whole screen. If you would rather not have River in the corner at all, add data-river="inside", which keeps it inside the listings area.

A visitor's camera does not start during the identity check for a self-guided tour. The browser asks the visitor for camera access in your site's name; they need to allow it. If your website sends a Permissions-Policy header that turns the camera off, your web developer has to allow it for https://app.lethub.co.

There are no filters or search box above my listings. They appear once you have 20 or more homes on the market. With a shorter list, visitors see every home at a glance, so the filters are left out.

The listings are narrower than I expected. They are as wide as the part of the page they sit in. Move the block to a full-width section, or add data-width="full".

Did this answer your question?