froyo
Sign in Start a directory
All help pages

Put it on your website

Embed your directory on a page you already have.

The embed puts your listings on a page you already have. It shows a list of your listings, and it stays in step with your directory.

What the embed shows

The embed shows the search box and filters, the map, and the list of listings with a page count. It leaves out the header, the footer, the sign in link and the submit link. Visitors see only your listings.

Each listing name links to its page on your directory site. These links open in a new tab, so visitors stay on your page.

Choose what shows

  1. Open your directory and select Directory profile.
  2. Find the Put it on your website section.
  3. Turn Show search and filters on or off.
  4. Turn Show the map on or off. This switch works only when Show a map is on above it.

The preview below the code changes as you choose.

Choose the height

  1. Under Height, select Fits the content to let the embed grow to the size of the list. This is the usual choice.
  2. Or select Fixed height to give the embed a set size.
  3. With Fixed height, fill in Height in pixels.

With Fits the content, the code is a short div and a script. With Fixed height, the code is a plain iframe and needs no script.

Paste the code on your website

  1. Select Copy next to Code.
  2. Open the page you want to edit on your website.
  3. Paste the code into an HTML or custom code block, where you want the list to appear.
  4. Save the page and open it to check.

Here is the code for Good Dog Cafés with Fits the content:

<div data-froyo-embed="https://gooddogcafes.froyo.app/embed"></div>
<script src="https://gooddogcafes.froyo.app/embed.js" async></script>

If you turn a switch off, the address ends in ?search=0 or ?map=0. Copy the code again after you change a switch.

Related