Add the ENTD script to your site once, then put a drawing on any page with an HTML block — or just by linking a Tilda button to it.
Open Site Settings → More, find HTML code for the HEAD tag, paste the script with your Connection ID and save.
<script src="https://entd.tech/em/entd-embed.js"
data-connection-id="YOUR_CONNECTION_ID" async></script>On the page, add a block from Other → HTML code (T123), click Content and paste the container with your Drawing ID.
<div data-entd-drawing="YOUR_DRAWING_ID"></div>Prefer Tilda’s own button design? In the block’s Content settings set the button link to #entd-draw-YOUR_DRAWING_ID. Works in Zero Block too.
Custom code doesn’t run in the Tilda editor — publish the page and open the live site. The drawing opens in a modal on top of your page.
data-entd-drawing gets the branded ENTD button inside it.data-entd-drawing to your own <a> or <button> — the drawing opens when it’s clicked, your design stays as is.#entd-draw-YOUR_DRAWING_ID. No HTML block needed — handy where you can only change a button’s URL.Add these attributes to the container to change the look of the ENTD button:
data-entd-theme — light, dark or autodata-entd-size — small, medium or largedata-entd-shape — rectangular or pilldata-entd-text — enter_draw, join_giveaway, participate, try_your_luck or any text of your owndata-entd-full-width="true", data-entd-logo="false"<div data-entd-drawing="YOUR_DRAWING_ID"
data-entd-theme="dark"
data-entd-shape="pill"
data-entd-text="Join the giveaway"></div>Most sites built with a website builder have no customer accounts. That’s fine: each visitor gets an anonymous ID stored in their browser, and entries are still checked for duplicates and bots before the draw. If your site does have accounts, pass the visitor’s ID so entries are tied to your customers:
<script>
// Optional: the ID of the logged-in visitor, if your site has accounts
window.ENTDEmbedConfig = { userId: 'CUSTOMER_ID' }
</script>#entd-draw-YOUR_DRAWING_ID with your Drawing ID.entd.tech in script-src and *.entd.tech in frame-src, and api.entd.tech in connect-src.