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
Using Wix Functions, you can add event badges (based on the event's data) to highlight urgency, promotions or featured picks to site visitors. For example, show the number of tickets left for limited ticket events to encourage guests to register quickly. Once you activate an event badge function, it automatically reviews each event and adds a badge when your conditions are met. 
Choose between our event badge templates 'number of tickets left' or 'custom text'. You can configure the varaibles, conditions, and outputs to personalize the badge and best fit your business needs. 
The badge appears on your event lists and event pages and follows your site design (i.e. colors and typography).
Screenshot of a how a user sees a badge on your event.

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) Select which events the badge will appear on. 
    1. Click the More Actions icon  at the top right. 
    2. Select Function configuration.
      Note: If you don't select a specific event, the badge will appear on all events.  
  5. Update the first variable's logic:
    1. Click the first Variable step to update its logic.
    2. Click Number value to update the value to match your business needs (e.g. update the default value to match the number of tickets for your event).
    3. Click Apply to save the variable.
Screenshot of the variable configuration set up.
  1. Update the second variable's logic:
    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 value to match the number of tickets left for your event).
    3. Click Apply to save the variable.
  2. Click the Output step.
  3. Set the desired priority for the badge.
    Tip: When multiple badges are relevant for the same event, the badge with the highest priority will be displayed.
  4. Click Apply to save the output.
  5. When ready, click Activate at the top right.
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) Select which events the badge will appear on.
    1. Click the More Actions icon  at the top right.
    2. 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 value to match the name and need of the badge).
  7. Set the desired priority for the badge.
    Tip: When multiple badges are relevant for the same event, the badge with the highest priority will be displayed.
  8. (Optional) Continue building your function as needed. 
  9. When ready, click Activate at the top right.
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.