You can change how your Eventify ticket page looks and add your own content to it with custom code. For example, you can restyle the ticket cards, change the price colour or the Add button, highlight one ticket with a badge, or add a notice above the ticket list. You write the CSS, and for new content the JavaScript, yourself, so this needs advanced coding knowledge. If you only want to hide something, see How to Hide Elements on Your Ticket Page by Injecting External CSS.
Where to find this: Registration > Registration Settings > Tracking Code
Go to Registration > Registration Settings and open the Tracking Code tab. It has two boxes, Add code before </head> tag and Add code before </body> tag. The same two boxes open from Registration > Tickets > Ticket Dashboards > Add Tracking Code. Code here loads on every page of your event's ticket and registration portal. Use this box for all the examples below.
Each ticket has its own Custom Code box on the last step of the ticket form, Settings. Code there loads only when a buyer opens that ticket's direct link, the link that ends in /tickets/ followed by the ticket code. It does not load on the full ticket list.
You can paste several examples into the box, one after the other.
This gives every ticket card a blue border with rounder corners and makes the ticket names blue and larger.
The border replaces the red border Eventify puts on sold-out tickets and, in the old portal, the coloured left edge from ticket colours. The ticket name has a class name on all screens in the old portal but only on wide screens in the new portal, so on phones the new portal shows the name in its normal style.
The new portal has a button that switches the page to dark mode. Dark mode adds the class dark to the page, so the rule that starts with html.dark gives the ticket name a lighter blue on the dark background. Add a rule like this for every text colour you change.
This shows the ticket price in green.
On phones, the new portal's price line has no class name of its own. The last selector picks the first line of the phone price area, which is the price. In the new portal, the tax, fee and "per ticket" text keep their own colour. On phones, when a discount code is applied, the discounted price is on the second line and keeps its own colour.
This turns the buttons buyers use to pick tickets orange and fully rounded.
In the new portal, .TICKET_ADD_BTN is the Add button on each ticket. The old portal has minus and plus buttons instead, with the class ticket-count, inside .TICKET_QUANTITY_SELECT_SECTION.
Each TICKET_ class name in the table at the end of this article also exists with an underscore and the ticket code at the end. In the code below, 22A071 is the ticket code. The code gives that one ticket an orange border and a "Best value" badge at the top of its card.
Replace 22A071 with your ticket's code in both places, and change the badge text between the quotes. The badge is made with CSS only, so it stays in place when the page redraws the list.
To find a ticket's code, go to Registration > Tickets > Manage Tickets and click the edit icon on the ticket. The Ticket Code is shown at the top of the first step, Ticket Details.
This adds a yellow notice above the first ticket.
Change the text between the quotes on the line that starts with var text. The script adds the notice once, and adds it back if the page redraws the list. The text is shown exactly as written, so HTML tags in it are not turned into links or formatting.
This adds a note directly below the ticket with the code 22A071.
Replace 22A071 with your ticket's code and change the text. If that ticket is not on the page, for example because the buyer picked another ticket tag, the script removes the note.
To hide an element, set it to display: none. This hides the tag labels on every ticket card.
For more on hiding, including hiding an item on one ticket only, see How to Hide Elements on Your Ticket Page by Injecting External CSS. The sale end date also has a built-in switch, Hide Ticket Sales End Date. In the new portal, the number of tickets left has one too, Hide Ticket Count. See How to Configure Ticketing and Registration Settings in Eventify.
The same rules apply as in Tracking Code: wrap CSS in <style> tags, and let scripts wait for the ticket card.
These names are on the ticket page so that you can style it. A name that starts with a dot is a class. Add an underscore and a ticket code to any TICKET_ name in this table to target one ticket.
| Class name | What it is | Where it works |
|---|---|---|
| .TICKET_LIST_CONTAINER | The whole ticket card | Both portals, all screens |
| .TICKET_NAME | Ticket name | Old portal: all screens. New portal: wide screens only |
| .TICKET_DESCRIPTION | Ticket description | Both portals, all screens |
| .TICKET_PRICE_SECTION | Price area | Old portal: all screens. New portal: wide screens only |
| .TICKET_PRICE_SECTION_MOBILE | Price area on phones | New portal |
| .TICKET_PAID_PRICE_SECTION | Price of a paid ticket | Old portal: all screens. New portal: wide screens only |
| .TICKET_PRICE | "Free" on a free ticket | New portal, wide screens only |
| .TICKET_DISCOUNTED_PRICE_SECTION | Price after a discount | New portal, wide screens only |
| .TICKET_ADD_BTN | Add button | New portal, all screens |
| .TICKET_QTY_BTN, .TICKET_QTY_VALUE | Minus and plus buttons and the number, once the ticket is in the cart | New portal, all screens |
| .TICKET_QUANTITY_SELECT_SECTION | Area with the minus and plus buttons (the buttons have the class ticket-count) | Old portal (new portal: tier-priced tickets on phones only) |
| .TICKET_END_DATE | "Sale ends on" date | Both portals, all screens |
| .TICKET_TAG | Tag labels on a ticket | Both portals, all screens |
| .TICKET_SOLD_OUT | "Sold Out" label | Old portal: all screens. New portal: wide screens only |
| html.dark | Added to the page when a buyer turns on dark mode | New portal |
To find a name that is not in this list, right-click the item on your ticket page, choose Inspect, and look for a name in CAPITAL LETTERS on the highlighted line or the lines just above it. Avoid lowercase styling names such as rounded-lg or text-sm. They describe a look, not a part of the page, and change between releases.
I pasted a <div> with my message, but nothing shows. Why?
The code boxes only use <style> and <script> tags, plus a few tags for page details. Other HTML is skipped. Create the element with a script, as in "Add a notice above the ticket list".
My script runs but can't find the tickets. Why?
Scripts usually run before the ticket list appears. Wait for the tickets with a MutationObserver, as the script examples do, instead of looking for them once.
Will my changes show in the ticket widget on my website?
Yes. The code runs inside the ticket page itself, so it also applies when the page is embedded on your website. On an embedded page, Eventify waits up to two seconds for your website's cookie-consent answer before it loads Tracking Code. If your website passes its cookie-consent choice to the ticket page and a visitor declines both analytics and advertising cookies, Tracking Code does not load for that visitor, and neither do your changes.
Do these examples work on the old ticket portal?
Yes. Each example was tested on both the new and the old portal. Where a class name exists in only one of them, the example and the table above say so.
Does Eventify check my code?
No. Eventify saves the code exactly as you paste it, and it also runs on your checkout pages. Try it on a test event first, and only use code you understand.
Need more help? Contact Eventify support from the admin panel.