Guest portal design
Everything the guest portal designer offers: which fields the page asks for, its look, texts, languages and links, the preview, and how the finished page gets onto your firewall or access point. Colours, texts and layout are baked into a file you download, so the last part matters as much as the design itself.
Where it lives and how editing works
Open Settings → Portal (page title Portal Customization). Admins and Managers can edit it and download the files; the User role does not see the menu item. The page has two tabs: Design (this topic) and Templates (the files for your device).
The Design tab is one form made of six collapsible sections. Only Login Methods is open at first; the row of buttons above the form jumps to any section and opens it. Next to the form a live preview redraws the page as you type, before anything is saved.
- The preview has Mobile / Desktop frames, a Turkish / English switch and Fullscreen. Switching the preview language changes nothing stored on the device.
- The preview shows the unsaved draft. View Portal (under the form) opens the saved page:
/p/<your-slug>on Cloud,/pon an on-premise server. - As soon as something changes, a bar sticks to the bottom with the number of unsaved changes, Reset to Defaults and Save Changes.
Three other pages shape what a guest receives or gets after signing in: message templates (the SMS and e-mail texts), guest profiles (time, speed, quota) and panel branding (the admin panel only).
Login Methods
The first section decides which ways in the guest is offered: SMS Verification, Email Verification, Sponsor Approval System, User Login, voucher and Hotel Guest Login, plus Section Shown on Open (which one the guest sees first; left on Automatic it is chosen for them) and Password field shape (6-digit code or a 6 to 64 character password). Each method, its prerequisites and when to choose it are explained in guest sign-in methods.
The designer refuses a few combinations when you save:
- All methods off: "At least one sign-in method must stay on." With nothing on, the guest page would open empty. (On-premise installs with directory sign-in enabled are exempt.)
- User Login off while SMS or Email is on: the SMS and e-mail flows send the guest to the user-login form to type the password they just received, so that form must stay.
- Switching the password box back to the 6-digit shape while a local user has a longer password is refused until those passwords are changed.
Form Fields
What the page asks for besides the phone number or e-mail address itself.
| Setting | What it does | Default |
|---|---|---|
| Full Name | Shows the name and surname boxes (the preview shows both). | On for a new portal |
| Adds an e-mail box to the sign-up form. | Off | |
| Email Required | Makes that box mandatory. Only appears while Email is on; the box is marked optional otherwise. | Off |
| Default phone country | The country preselected in the phone box (flag and dialling code). The guest can still pick another from the list. | Türkiye (TR) |
| Allow only this country | Locks the box to that country; the guest cannot change it. | Off |
Brand & Appearance
| Setting | Details and limits |
|---|---|
| Logo | PNG, JPG or WebP, up to 2 MB (the type is checked on the file content, not the name). The file is stored the moment you pick it, without pressing Save; the X button deletes it after a confirmation. With no logo the page shows the first letter of your organisation name on a tile in your primary colour. |
| Welcome Message | The title of the page, 160 characters. The English field below it is optional and falls back to the Turkish text. If you leave the Turkish one empty, the page shows "<organisation name> Misafir İnternet" to everyone, including English readers, because the grey English example is only a hint. Fill in both. |
| Sector Templates | One click sets colours, theme, header, corners, shadow, buttons, inputs, density, header alignment and font. Hospital / Clinic: teal, colour-band header, large corners, humanist font. Airport (dark): dark theme on navy, strong shadow. Office / Visitor: slate blue, sharp corners, compact. They never touch which login methods are on, but they do set Section Shown on Open (SMS for the first two, Voucher for Office). Undo template restores the previous values. |
| Quick Color Schemes | Eight swatches: Modern Blue, Ocean, Forest, Sunset, Rose, Professional, Minimal, Warm (the names are English in both panel languages). Each sets the primary, secondary and background colours together. Restore previous colors undoes the last click. |
| Primary / Secondary / Background Color | Hex codes such as #0f766e (3, 4, 6 or 8 digits). Primary is the button and accent colour, secondary the link and secondary button colour, background the page colour. Primary and background are required. A small badge next to Primary shows the contrast against the background (for example AA · 5.5:1); aim for AA or better so button text stays readable. |
| Background Image | PNG, JPG or WebP, up to 5 MB. It replaces the background colour. Like the logo, it is stored on upload and removed with the X button. |
| Portal Theme | Light (default), Dark, or Auto, which follows the guest's own device setting. |
| Font | Six choices: System (default), Serif warm (Georgia), Serif elegant (Palatino), Humanist (Segoe UI), Geometric (Futura), Monospace. They are faces already installed on the guest's device, because the page opens before the guest is online and cannot download a font. The same choice therefore looks slightly different on Windows, iOS and Android. |
| Guest Portal Layout | Tabbed View (a tab per method) or Accordion View (every method as a collapsible section, the default). |
Texts & Labels
| Field | Limit | Notes |
|---|---|---|
| Tab Labels: Get Credentials, Login, Hotel | 40 characters each | Empty means the built-in names (Şifre Al / Giriş Yap / Otel in Turkish, Get Credentials / Login / Hotel in English). Each has a Turkish and an English field. The Hotel label can only be edited while Hotel Guest Login is on. In the accordion layout the same labels title the sections. |
| Footer Text | 300 characters | A line at the bottom of the card. Turkish and English fields. |
| Footer — Right Side (TR / EN) | free text | When filled, the footer becomes two columns: Footer Text on the left, this on the right (for example Support: Reception). It is shown as written and changes no setting. |
| Copyright Text | 200 characters | Under the footer, e.g. © 2026 Acme Hotels. Turkish and English fields. |
The line Powered by Captivo under the card is part of the page and has no setting to hide or change it. The consent boxes for the terms and privacy are fixed too; see KVKK, privacy and data retention.
Style Fine-Tuning
| Setting | Choices | Default |
|---|---|---|
| Corner Roundness | Sharp, Small, Medium, Large, Pill | Medium |
| Density | Compact, Normal, Comfortable | Normal |
| Card Shadow | None, Soft, Medium, Strong | Medium |
| Font Size | Small, Normal, Large | Normal |
| Button Style | Solid, Outline, Gradient | Solid |
| Input Style | Outline, Underline, Filled | Outline |
| Card Position | Left, Centred, Right (wide screens only; a phone is always centred). With a background image, a side position leaves the other half of the image visible. | Centred |
| Header Style | Classic (centred logo + title), Colour band (a primary-colour strip with logo beside the title), Photo band (a wide photo on top, round logo on its edge) | Classic |
| Header Alignment | Left, Center | Center |
| Card Width | Narrow, Normal, Wide | Normal |
| Animations | On, Off | On |
- Photo Band Image appears only when Header Style is Photo band: PNG, JPG or WebP up to 5 MB, a wide photo because the band crops to its centre. Without one the band is a gradient between your brand colours. Like the logo it is stored on upload.
- Visual Effects: Gradient Background (primary to secondary colour), Blur Effect (a frosted, semi-transparent card) and Large Logo (120 px).
- Advanced: Custom CSS (collapsed): up to 10,000 characters. For safety the server strips
<style>,<script>and similar tags,@import,expression(,javascript:and SVG or textdata:addresses on save; anything else stays. The page body carries the classportal-container, the cardportal-card, the logoportal-logo. Test on a real device after saving, because CSS that fights the generated styles can break the layout.
Links & redirect
| Field | What it does |
|---|---|
| Terms of Use URL (Optional) | Address behind the terms link next to the consent box. It opens in a window inside the portal so the guest does not leave sign-in; if that window cannot open, an "open in a new tab" option appears. |
| Privacy Policy URL (Optional) | Same for the privacy link. |
| Post-Login Redirect (Optional) | The page the guest is sent to after connecting, for example https://acme.example/welcome. |
- All three must start with
http://orhttps://, be at most 2,048 characters and may not point to localhost or a private or link-local address (10.x,172.16-31.x,192.168.x,127.x,169.254.x). Such a save is refused with a message. - The yellow card These addresses must be allowed on the network lists the hosts of the terms and privacy links, with a Copy button. The guest taps them before they are online, so add those domains to the walled garden (allowed addresses) of your firewall or access point or the pages will not open. The redirect address is not listed: the guest follows it after sign-in, with full internet.
Languages
The portal exists in two languages, Turkish and English; there is no setting to add a third. The fixed texts (buttons, errors, consent wording) are built in. The texts you write (welcome message, tab names, footer, copyright) each have a Turkish and an English field, and English falls back to the Turkish text when empty.
A TR / EN switch sits on the page. It opens in the language the guest chose last time (remembered in the browser); if there is none, in Turkish for a browser set to Turkish and in English for any other. The SMS or e-mail the guest then receives follows the language of the page, provided the file on your device is recent (see below).
Preview, saving and Reset to Defaults
- Save Changes stores every field of the form. Nothing you typed reaches guests until you save and the page on the device is replaced.
- Uploads and deletions of the logo, background and photo band act immediately on the server, whether or not you press Save.
- Reset to Defaults asks for confirmation and then puts the whole form back to its factory values: colours #3b82f6 / #6366f1 / #f8fafc, System font, accordion layout, medium style options, empty texts and links, and also the login methods (SMS and User Login on, everything else off; Full Name on, Email unticked). Everything, including removing the logo and background image, only happens in the form until you press Save: the two files are deleted from the server when you save, and not before. The photo band image file is not deleted.
Getting the page onto the network device
Open the Templates tab. Each card builds a file from your saved settings when you click download, and the file is complete on its own: the CSS and the script are inside it.
| Device | You download | It goes to |
|---|---|---|
| pfSense | Download Login Page and Download Error Page: captivo-portal-<slug>.html, captivo-portal-error-<slug>.html | Services → Captive Portal → zone → HTML Page Contents |
| OPNsense | captivo-opnsense-<slug>.zip | Services → Captive Portal → Templates |
| MikroTik | captivo-mikrotik-<slug>.zip | the hotspot html-directory on the router (login.html, alogin.html) |
| FortiGate | captivo-fortigate-<slug>.html | Replacement Messages → Login Page |
| Cisco Meraki | captivo-meraki-<slug>.html | Splash page → custom theme |
| UniFi | no file | Connector; the page is served by Captivo |
| Ruijie | no file | the gateway points at the page Captivo hosts |
The exact upload steps are in each device topic. Three things are common to all of them:
- Download again after every change. Colours, texts, layout and the list of methods are written into the file at download time, so a saved change does nothing on the device until you download and upload again. The save bar only reminds you after changes to login methods, header, card position, right footer and the password box, but the rule covers every setting. UniFi and Ruijie, and the saved page at
/p/<slug>, are built on each request and need no re-upload. - The page asks Captivo for everything (sending the code, checking it). An unauthenticated guest must be able to reach the Captivo address, and the logo and background are loaded from there too. If the logo is missing on the device but fine in the panel, the walled garden is the first thing to check. The OPNsense ZIP additionally carries a copy of the logo.
- pfSense also needs the error page. With RADIUS MAC authentication it is the first page an unknown device sees.
The API key inside the downloaded file
Every file (and the page Captivo hosts) carries your organisation's API key from Settings → RADIUS → API Settings, written into the page script. The page sends it in an X-API-Key header, along with an X-Captivo-Template header holding the file's format version, on each call it makes to Captivo. The server uses the key to find which organisation the call belongs to; it refuses a call when the key is unknown, when RADIUS is switched off for the organisation, or when the organisation is suspended.
- The key is part of a page that is sent to every guest device, so anyone who can open the guest page can read it in the page source. Treat it as an identifier that ships to guests, not as a password, and do not use it for anything private.
- Allowed Origins on the same page limit which web origins may call the API from a browser: empty means any origin,
*any origin, otherwise an exact origin such ashttps://portal.acme.exampleor a*.acme.examplepattern. The origin is the address the guest page itself is served from, so a list that does not include your device's portal address makes the page fail to reach Captivo. Leave it empty unless you know that address. - Regenerate revokes the old key at once. The file on your device still holds it, so guests cannot sign in until you download the files again and upload them. Revoke has the same effect with no replacement. Plan the change outside busy hours.
- For building your own page against the same endpoints, see Public API and API key.
Common problems
| What you see | Cause and fix |
|---|---|
| Preview shows the new look, the real portal does not | The device still serves the old file. Save, download again, upload again (section above). |
| Save fails with "At least one sign-in method must stay on" | Every method is off. Turn one on. |
| Save fails on a URL | The address is not http(s), is longer than 2,048 characters or points to a private address. Use a public address. |
| Terms or privacy links do not open on the device | Add the hosts from the yellow card to the walled garden. |
| The page is English but the SMS arrives in Turkish | The file on the device is older than the language feature: the stale banner explains it. Download and upload again. |
| Guests cannot sign in right after a key change | The old key is embedded in the old file. Download and upload the files again. |
| An error message is in Turkish in the English panel | Some server messages (for example from Save or the download) are only available in Turkish today; the meaning is the one described on this page. |
If the page does not open at all, see the portal does not open. Sign-in methods: guest sign-in methods. Consent texts: KVKK, privacy and data retention. Texts of the messages: message templates.