
Add a wedding availability calendar to any website (HTML, Next.js, React)
If you or your developer can edit the HTML, this is all it takes: a div where the calendar goes and one script.
- 1
Copy your code
Get your code on ask.wedding: Your listing → On your website. Pick the look, then Copy code.
- 2
Paste the div
Put the <div data-askwedding> part (with the link inside it) where the calendar should appear.
- 3
Load the script once
Add the <script src=".../embed.js" async> line once per page, for example before </body>.
- 4
Single-page apps
In Next.js or React render the div as usual and load the script with your framework's script component. After a client-side page change call window.AskWedding.scan() to pick up new calendars.
Options on the div: data-layout="calendar|button", data-theme="light|dark", data-accent="#hex", data-months="1|2".
The calendar renders in a Shadow DOM, so your CSS and ours never collide. It reads only public day states from https://ask.wedding/api/embed/{your-listing}.
What the code looks like
Yours has your own listing in it. The link inside is the only thing that must stay visible.
<div data-askwedding="your-listing">
<a href="https://ask.wedding/vendor/your-listing">Your business on ask.wedding</a>
</div>
<script src="https://ask.wedding/embed.js" async></script>