> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drumtix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Embedding a Ticket Widget

> Add a Drumtix ticket widget to any website with a single embed code.

The Drumtix ticket widget lets buyers purchase tickets without leaving your website. It embeds directly into any page that accepts HTML.

## Creating a widget

1. Go to **Widgets** in the main navigation
2. Click **New Widget**
3. Select the event(s) to include
4. Copy the generated embed code

## Adding the embed to your website

Paste the embed code into your website's HTML where you want the widget to appear. It works on any site that supports custom HTML — Squarespace, Wix, Webflow, WordPress, and custom-built sites.

```html theme={null}
<script src="https://drumtix.com/embed.js" data-widget-id="YOUR_WIDGET_ID"></script>
```

The widget renders automatically when the page loads.

## Customising the widget

In the widget editor, you can:

* **Override the event image** — use a different image in the widget vs the main event page
* **Select multiple events** — the widget can show a list if you're embedding several events

## Managing existing widgets

Go to **Widgets** to see all your created widgets. You can edit or delete them at any time. Deleting a widget removes it from any pages it's embedded on.

## Embed preview

Click **Preview** on any widget to see how it will look before embedding it on your site.
