Skip to content
Embedding posts · CrowOn Developer

Guides

Embedding posts

How to show a public post as a card on a blog or site.

Show a public post as a card on a blog or site. The card has the author, a photo or video thumbnail, the caption, the like count and "View on CrowOn".

Get the code

  • In the app, open a post's … menu and choose Embed. The code is copied.
  • Embed appears only on posts that are public to everyone.

The code

Paste it into your HTML where the post should appear. embed.js replaces the blockquote with the card and keeps its height right.

HTML
<blockquote class="crowon-embed" data-post="{post ID}" style="max-width:540px;margin:0 auto">  <a href="https://crowon.app/s/p/{post ID}">View this post on CrowOn</a></blockquote><script async src="https://crowon.app/embed.js"></script>

Where scripts aren't allowed, load the card directly.

HTML
<iframe src="https://crowon.app/embed/{post ID}" width="540" height="640"  style="border:0;max-width:100%" loading="lazy" title="CrowOn"></iframe>

Options

OptionValuesWhat it does
data-themelight · darkOn the blockquote, fixes the card's colours. Without it the card follows the viewer's device
?theme=light · darkThe same, for an iframe
WidthUp to 540pxShrinks to fit where it's placed

When a card isn't shown

  • If the post stops being public to everyone, is deleted, or is hidden by moderators, the card says "This post isn't available".
  • If the author turns off "Allow embedding on other sites" in Settings › Privacy & audience, cards already embedded stop showing too.
  • For people who hide like counts, no count is shown.
  • Cards are cached for a minute, so changes show within about a minute.

Addresses and responses in detail: API reference