# Adding the ticket widget to your website

Show your event's ticket card on your own website, with prices and a buy button.

> Source: https://help.nyebar.id/en/organizer/integrations/ticket-widget

Have your own community or brand website? Add the ticket widget so visitors can see your event's date, location and ticket prices without leaving your site. When they click **Get Tickets**, the event page on Nyebar opens in a new tab, and ordering and payment happen on Nyebar as usual.

The widget is only available for published events.

## Getting the widget code

1. Open your event, go to the **Settings** tab, find **Ticket widget** and click **Get widget code**.

   ![The Ticket widget section in the Settings tab with the Get widget code button.](https://help.nyebar.id/screenshots/en/org-embed-section.webp "The Ticket widget section in the Settings tab.")

2. Pick the **Widget language**, Indonesia or English. The preview below shows how the widget will look on your site.
3. Click **Copy code**, then paste it into your website page where the widget should appear. In WordPress, Wix or Squarespace, use an **HTML** or **Embed code** block.

   ![The Ticket widget window with the language choice, a widget preview and the code to copy.](https://help.nyebar.id/screenshots/en/org-embed-modal.webp "Pick a language, check the preview, then copy the code.")

## What the widget shows

- The event's image, title, organizer, date and location (or **Online**).
- The tickets with their prices. Tickets that are sold out, paused, not on sale yet or no longer on sale still show, with a note, and tickets that need your approval are labeled **Needs approval**. Hidden tickets don't show.
- A **Get Tickets** button that opens the event page on Nyebar. Once the event is over, the button is replaced by a note that the event has ended.

The widget follows your event data. If you change prices, quotas or the schedule, the widget updates within about a minute, with no need to paste the code again.

> **Your website can't run scripts?**
>
> Some website builders don't allow script tags. Under **Code**, pick **Iframe** and copy that code instead. An iframe widget has a fixed height of 680 pixels, so change the `height` value in the code if your widget is taller or shorter.

If the event is deleted or no longer published, the widget shows **Event unavailable**. Remove the code from your site once the event is no longer needed.
