Free for any website

Embed the "On This Day" widget

Add a free, self-updating widget to your blog, classroom site, or homepage that shows which historical figures were born or died on today's date — no signup, no API key, no server required.

Live preview

How it works

Paste two script tags anywhere in your page's HTML. The widget renders itself client-side, needs no configuration, and always shows the current date's figures — it updates automatically every day with no further action from you.

Options

  • data-max — how many figures to show (default 4)
  • data-themelight (default) or dark, to match your site
  • data-target — the id of the container element (default whoinhistory-onthisday), useful if you need to avoid an id collision

Embed code

<div id="whoinhistory-onthisday"></div>
<script src="https://whoinhistory.com/js/onthisday-widget-data.js"></script>
<script src="https://whoinhistory.com/js/onthisday-widget.js" data-max="4" data-theme="light"></script>

A few notes

The widget links back to a "Widget by Who in History" credit and to the relevant profile pages on whoinhistory.com — please keep that attribution intact rather than hiding or removing it, per our terms. Data is a small, self-contained file (no cookies, no tracking, no fetch calls to a live API), so it works on any static or dynamic host without CORS configuration.