Your event's web portal, the version of your event that attendees open in a browser, can load your own CSS and JavaScript. With it you can hide parts of the portal, change how things look and add your own content, such as a notice for attendees. Writing CSS and JavaScript needs advanced coding knowledge. If you don't write code yourself, ask a web developer to prepare it, and try it on a test event first.
Where to find this: Setup > Branding > App Home Screen > Customize Web Portal (Web Portal CSS and Web Portal Script)
The new UI opens at an address that ends in /px/ and the old UI at one that ends in /p/. They are built differently, so the same element has a different name in each. Every example below says which UI it is for. Where an example lists both names in one rule, the same code works on both.
To see which UI your attendees get, go to Settings > Event Settings and look at Web Portal Interface Settings. With Force New UI or Force Old UI, attendees only see that design. With Allow User to Switch, the default, they can reach both, so add code for both.
Web Portal CSS and Web Portal Script load on every page of the web portal, in both UIs, including the login page. The same code also loads on other attendee pages that run on the web portal: the link address of an embed from Settings > Integrations, the abstract submission portal, the abstract reviewer portal and its login page, the session RSVP page and websites made with the Website Builder. Use the specific names in this article so that a rule only touches what you mean.
It does not load on your ticket and registration pages. To change those, see How to Hide Elements on Your Ticket Page by Injecting External CSS. Sessions, speakers, sponsors and exhibitors embedded with a script use the embed's own Custom CSS instead. See How to Embed Sessions, Speakers, Sponsors and Exhibitors with a Script.
The code only affects web pages. The event app on iOS and Android doesn't use it.
CSS doesn't need any of this. A CSS rule applies to every matching element as soon as it appears, also after the attendee moves to another page.
Start every script from this template and put your changes inside apply(). The template runs apply() straight away and again every time the page changes, and the check at the top stops the script from starting twice. Examples 4 and 6 are built on it.
Because apply() runs many times, always check before you add something, as the examples do. Give each script its own name on the first two lines, such as myNoticeScript, so that two scripts don't block each other.
This hides the Register Now buttons in the top bar and on the home page of the old UI. On events that sell tickets, the same buttons read Buy Tickets, and the rule hides them too. Paste it into Web Portal CSS.
Adding !important to a hide rule makes it win over the portal's own styles, so it is a good habit for display: none. The new UI has no fixed name for this button, so this example is for the old UI only.
Hiding a block in App Home Screen takes it off the home screen of both the app and the web portal. To keep a section in the app but hide it on the web portal, leave it visible in App Home Screen and hide it with CSS. This hides the Sponsors section of the home page in both UIs. In the new UI it works before login only, because after login the section has no fixed name. Paste it into Web Portal CSS.
The first line is for the old UI and the second for the new UI. The names stay the same if you rename the section. The section's name stays in the menu at the top of the home page. For other sections, use the names in the table under "Names you can use".
This changes the event name on the home page that visitors see before they log in, in both UIs. Paste it into Web Portal CSS and use your own colour and size.
A dark colour is hard to read when an attendee switches to dark mode. Both UIs add the name dark to the page in dark mode, so you can set a second colour for it:
To change the font of the whole portal, see Can I Change the Font of My Event App?.
This adds a short notice at the top of the home page in both UIs. In the new UI it shows before login only. In the old UI it also shows after login. It needs both boxes.
Paste this into Web Portal Script:
And this into Web Portal CSS:
Change the text between the quotes on the notice.textContent line. How it works:
apply() looks for the top of the home page: the block named home in the new UI, the marker named Home in the old UI. Until it is on screen, apply() does nothing and the script waits for the next change on the page.apply() runs and adds the notice again.A Webview block with your own HTML content shows on the home page in a box up to 800 pixels tall, with its own scroll bar for anything longer. This shows the whole content of one block, without the inner scroll bar. It only changes the block you name. Paste it into Web Portal CSS.
New UI: each Webview block has the id webview_ followed by a number. Replace 1234567890123456 with your block's number.
Old UI: the block is found by its name, exactly as it shows on the home page. Replace Hotel and Parking with your block's name.
Here !important is needed. The portal sets the height on the box itself, and a rule without !important can't override that. To find the number or the name, see "How to find an element's name" below. For more on Webview, see How to Add Custom Web Pages to Your Event App With Webview.
This adds a button under the event name on the home page that visitors see before they log in, in both UIs. It opens your own page or file in a new tab. It needs both boxes.
Paste this into Web Portal Script:
And this into Web Portal CSS:
Replace the address on the link.href line with your own page or file, and change the button text on the link.textContent line. The script is built on the template, so it waits for the event name, adds the button once and adds it again when the attendee comes back to the home page.
A name that starts with a dot is a class. One that starts with # is a single element. The portal uses these names itself, so they are the safest ones to target.
| Name | What it is | UI |
|---|---|---|
| .LANDING_PAGE_REGISTER_NOW_BUTTON | Register Now or Buy Tickets buttons in the top bar and on the home page | Old |
| .LOGIN_BUTTON | Login buttons shown before login: top bar and home page. Old UI: also the "Already Registered Login" line. New UI: also the phone menu and detail pages | Both |
| .support-details | "contact support" link on the home page before login, in the login window and on the My Tickets page | Old |
| .LANDING_PAGE_QUICK_LINK_SECTION | Quick Links on the home page, after login | Old |
| #navbar-main | Top bar on wide screens. On phones it is #navbar-main-mobile | Old |
| .event-details-container | Top block of the home page: cover image, event name, dates and buttons | Old |
| .event-name-section | Event name on the home page before login | Old |
| .event-overview .speakers .event-overview .sponsors .event-overview .exhibitors .event-overview .location | Speakers, Sponsors, Exhibitors and Maps sections of the home page | Old |
| [id="Section name"] | Any other home page section, by its name as it shows in the menu, for example [id="About"] | Old |
| #home | Top block of the home page before login: cover image, event name, dates and buttons | New |
| #main-content | Main area of the home page before login, between the top bar and the footer | New |
| section#about #schedule section#speaker #sponsor #exhibitor #maps #news #gamification #ads | Home page sections. #schedule, #exhibitor, #maps and #news: before and after login. section#about, section#speaker, #sponsor and #gamification: before login only. #ads: after login only. Write section#about and section#speaker: a session's detail page uses the ids about and speaker too | New |
| #webview_ followed by a number | One Webview block on the home page | New |
| #navBar | Top bar after login | New |
| .overview-footer | Announcement bar at the bottom of the home page. In the old UI it shows after login only | Both |
| .dark | Added to the page when dark mode is on. Put it in front of another name, as in Example 3 | Both |
If you don't write code yourself, an AI assistant such as ChatGPT, Claude or Gemini can find the right element and write the code for you. It needs two things: the HTML of the part you want to change, and the rules of the Web Portal boxes.
Don't use Copy selector from the same menu. It gives a long path such as div:nth-child(3) > div > span that breaks as soon as the page changes. Ask the AI to use the names in this article instead. AI assistants can get things wrong, so always check the result, ideally on a test event first.
Does this change the event app on phones?
No. The code only loads in web browsers. The event app on iOS and Android doesn't use it.
My code works in one UI but not the other. Why?
The two UIs use different names for the same element. Add the names for both, as in Examples 2 and 3, unless your event is set to Force New UI or Force Old UI.
I saved my code but the portal hasn't changed. Why?
Refresh the page. The new UI loads a saved copy of your event's settings, which is updated in the background, so a change can take a little while to show there.
Can my code affect pages other than the web portal?
Yes. It also loads on embed links from Settings > Integrations, the abstract submission portal, the abstract reviewer portal, the session RSVP page and Website Builder sites. Use the specific names in this article. Ticket and registration pages are not affected.
Does Eventify check my code?
No. Eventify saves the code as you paste it, and a script runs for every visitor. Only use code you trust, and try it on a test event first.
Need more help? Contact Eventify support from the admin panel.