header-logo
Learn how to use Wix to build your site and business.
Design and manage your site using intuitive Wix features.
Manage subscriptions, plans and invoices.
Run your business and connect with members.
Learn to purchase, connect or transfer a domain to your site.
Get tools to grow your business and web presence.
Boost your visibility with SEO and marketing tools.
Get advanced features to help you work more efficiently.
Find solutions, learn about known issues or contact us.
placeholder-preview-image
Improve your skills with our courses and tutorials.
Get tips for web design, marketing and more.
Learn to increase organic site traffic from search engines.
Build a custom site using our full-stack platform.
Get matched with a specialist to help you reach your goals.
placeholder-preview-image
In this article
  • Adding a 'number of tickets left' badge
  • Adding a custom text badge

Wix Functions: Adding an Event Badge

3 min
In this article
  • Adding a 'number of tickets left' badge
  • Adding a custom text badge
Add event badges based on your event data to highlight urgency, promotions, or featured picks. For example, show the number of tickets left for limited ticket events or label a headline show with a short promotional message. Once you set up and activate an event badge function, it automatically reviews each event and outputs a single badge when your conditions are met. The badge appears on your event lists and event pages and follows your site design.
The current event badge templates include a number of tickets left badge and a custom text badge. This article gives you step by step instructions for setting up each template. You can also create a function from scratch and add your own custom logic.

Adding a 'number of tickets left' badge

Display how many tickets are still available for your events. This is useful when there are a limited number of tickets to your event and you want guests to register quickly. 

To add a 'number of tickets left' badge:

  1. Go to Functions in your site's dashboard.
  2. In the Function catalog, click Create Function under Add event badges.
  3. Select # of tickets left badge and click Use Template
  4. (Optional) To select which events the badge will appear on, click the More Actions icon  at the top right and select Function configuration.
    Note: If you don't select a specific event, the badge will appear on all events.
  5. Click the first Variable step to update its logic.
  6. Click 'Number value' to update the value to match your business needs (e.g., update the default product value to match the number of tickets for your event).
  7. Click Apply to save the variable.
Screenshot of the variable configuration set up.
  1. Click the second Variable step to update its logic.
  2. Click 'Value' to update the value to match your business needs (e.g., update the default product value to match the number of tickets left for your event).
  3. Click Apply to save the variable.
Screenshot of the variable configuration set up.
  1. Click the Output step.
  2. Set the priority so that the highest priority badge that meets your criteria will be displayed.
  3. Click Apply to save the output.
  4. Click Activate at the top right once your function is set as desired.
Screenshot of the output configuration set up.

Adding a custom text badge

Display any text you want on a badge for your events. These can display a fixed message like Featured, Top Pick, or Selling Fast. They're great for highlighting specific events regardless of ticket count.

To add a custom text badge:

  1. Go to Functions in your site's dashboard.
  2. In the Function catalog, click Create Function under Add event badges.
  3. Select Custom text badge and click Use Template
  4. (Optional) To select which events the badge will appear on, click the More Actions icon  at the top right and select Function configuration.
    Note: If you don't select a specific event, the badge will appear on all events.
  5. Click the output step to update its logic. 
  6. Click 'Text' to update the value to match your business needs (e.g., update the default product value to match the name and need of the badge).
  7. Set the priority so that the highest priority badge that meets your criteria will be displayed.
  8. (Optional) Continue building your function as needed. 
Screenshot of the output configuration set up.

Helpmate

Hello

Need a bit more guidance?
Summary of this article
Unlock personalized helpLog in to get the most out of Helpmate.