Use custom CSS to change the appearance and layout of a Cloud4Wi Splash Page without changing its underlying registration or authentication behavior. The examples below cover common Click-through customizations, the optional Back button in Multi-step onboarding, and other visual adjustments.
Add the relevant rules to your Splash Page's custom stylesheet. If you already use custom CSS, check for conflicting selectors or declarations, and test the result on the devices and layouts used by your guests. For instructions on uploading a stylesheet, see Splash Page style, languages and redirect.
Show Click-through fields on the home page
Display the Click-through registration fields directly on the initial Splash Page instead of requiring users to open the form first. This can reduce the number of clicks when the form has only a few fields or Click-through is the only available sign-up method.
div#clickCustomFields {
display: block !important;
}
div#click_through_form {
display: none;
}
button#clickButton {
display: none;
}
a#clickThroughCancel {
display: none;
}
.click_through_form_valitated {
display: block !important;
}
.click_through_form_valitated #clickButton {
display: block !important;
}Swap the order of Terms of Use and Marketing checkboxes
Display the Marketing checkbox before the Terms of Use and Privacy Policy checkbox in a Click-through form. This changes their visual order only; the acceptance rules and checkbox states remain controlled by the Login Profile's Policies settings.
div#clickCustomFields {
display: flex;
flex-direction: column;
}
#clickCustomFields .click_through_input.click_privacy {
order: 9;
}
#clickCustomFields .commit_bar {
order: 10;
}Display the Click-through form in full screen
Show the Click-through form as a full-screen overlay when users select Go Online on the initial Splash Page. This layout can be useful when the form contains many input fields or opt-ins.
div#clickCustomFields {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: white;
z-index: 2048;
padding: 40px;
-webkit-animation: fadeIn 1s;
animation: fadeIn 0.2s;
color: rgba(0, 0, 0, 0.87);
}
.click_through_form_flip a {
color: rgba(0, 0, 0, 0.87);
}
div#clickCustomFields > div {
max-width: 400px;
margin: auto;
}
.modal.fade.in {
z-index: 2074;
top: 0 !important;
bottom: 0 !important;
left: 0;
right: 0;
border: none;
background: white;
}
.modal.fade .modal-footer {
display: none;
}
.modal.fade .modal-body {
overflow-y: scroll;
height: auto;
padding: 15px;
position: relative;
background: white;
max-height: none !important;
}These rules also affect related modal elements. Check the display of policy dialogs and other overlays if your Splash Page uses them.
Enable the Back button in Multi-step Click-through forms
Multi-step Click-through onboarding supports an optional Back button on Step 2, for both Subscription and Enrichment configurations. The button is hidden by default. To display it, add the following rule to the Splash Page's custom stylesheet:
/* Show the Back button when Step 2 is active */
body.multiStep2 a#clickThroughBack {
display: inline-block !important;
}The body.multiStep2 selector targets Step 2 when it is active, and a#clickThroughBack targets the Back button provided by the platform. The CSS makes the existing control visible; it does not create a new navigation function.
Once enabled, the button is shown only when Step 1 was displayed earlier in the current onboarding flow:
- New users: Back is visible after completing Step 1 and reaching Step 2.
- Returning users who see Step 1: Back is visible on Step 2.
- Returning users who skip Step 1: Back is not displayed.
Selecting Back returns the user to Step 1 without clearing previously entered information. For details about when Step 1 is displayed to returning users, see Login Profile configuration and options.
Hide the top bar
The top bar primarily provides the language selector. Use the following CSS to hide its elements. Users will no longer be able to access the hidden language selector from that bar.
home_menu {
display: none !important;
}
li#menu1 {
display: none !important;
}
.navbar-inner {
background: none !important;
}
a.homeIcon.btn.btn-navbar {
display: none !important;
}Adjust the size of the Splash Page's main image
If a logo or branding image is too large in the full-page Splash Page layout, constrain its displayed size with CSS. This example sets the image width to 300 pixels on larger screens and limits its maximum width to 300 pixels on screens up to 735 pixels wide.
.main_brand img {
/* Adjust this value to suit the image proportions */
width: 300px;
}
@media only screen and (max-width: 735px) {
.main_brand img {
width: auto;
max-width: 300px;
}
}