Skip to main content

Single Embed

The single embed shows one place or event: photos, description, hours or dates, a map and similar items. Use it to build a detail page on your own site that your grid, map or carousel cards open.

Embed code​

One fixed place:

<div id="vibemap-single"></div>
<script
src="https://web.vibemap.com/load.js"
data-iframe-el="vibemap-single"
data-resize="true"
data-url="https://web.vibemap.com/embed/single?type=place&slug=hog-island-oyster-co"
></script>

A detail page template that shows whichever item its own URL names, such as https://your-site.com/place/?slug=hog-island-oyster-co:

<div id="vibemap-single"></div>
<script
src="https://web.vibemap.com/load.js"
data-iframe-el="vibemap-single"
data-resize="true"
data-forward-params="slug"
data-url="https://web.vibemap.com/embed/single?type=place"
></script>

data-forward-params="slug" copies slug from your page's URL onto the embed. For a page that shows both places and events, use data-forward-params="slug,type" and leave type out of data-url; it defaults to event.

Parameters​

See Single URL Parameters.

Events and sizing​

The single embed reports its height, scrolls your page back to its top when a new item opens, and shows a Back button when there is somewhere to go back to. With the loader it also sets your page's title to the item's name. See Embedding and sizing.