06-17-2016 04:01 PM - edited 10-26-2026 12:59 PM
Author: Jason Kunst
Contents
This guide helps users understand how to work with ISE portal customizations in ISE versions 1.3 and higher. It includes basic, intermediate and advanced customizations examples and touches on the use of built-in tools, JavaScript, CSS, and jQuery ThemeRoller. These same concepts can be used in all of the user portal flows that ISE supports (Guest, BYOD, MDM, My Devices and Posture). In this guide, we will work with the Guest Portals.
You can learn the basics of portal customization and see a few general examples in Customizing End-User Web Portals in the ISE Administrator Guide.
There are three types of users that are interested in customizing web portals: the average user, the tweaker, and the hacker. These tasks are designed such that all users can perform them.
The average user can upload a logo or a banner, change some text, bold it, and change the colors on the page. For those users working with html/javascript and those familiar with the workings of ISE, they will also be able to take the examples provided and paste them into the page to make basic changes. An example of this might be moving an element on the page or changing some text into a button.
The tweaker is a user who has some basic skills with programming and dabbles in code. They would be able to grab samples and easily implement them in a portal. Another possibility would be to take multiple examples and merge them for other uses, plus move elements, change colors and layouts, etc. This user would also be able to learn jQuery Mobile or CSS and do some more globalized changes such as rounding, coloring, and so on.
The hacker is someone who lives and breathes web development. They know CSS, Javascript, and HTML. They can do most anything they need within the capabilities of ISE when it comes to customization branding.
These exercises will introduce you to some common, intermediate, and advanced customizations available in ISE 1.3 and later versions. This document will not teach you programming of HTML, CSS or JavaScript. For tutorials on how to use these languages visit sites such as Code Academy.
The following table shows you some common tasks you might want to perform and what type of tool you would use to perform them:
| Function | ISE built-in | ISE Javascript HTML | CSS | jQuery Theme Roller CSS |
| Move an element on the page (Example: don’t have an account) | No | Yes | Yes | No |
| Change button color | No | Yes | Yes | Yes |
| Change text/background color | Yes | Yes | Yes | Yes |
| Display additional images (Example: background image) Note: requires using an external web server or file remediation | Yes | Yes | Yes | No |
| Change Layout of page | No | Yes | Yes | No |
| Different layout per language (includes logo, banener) | No | Yes | Yes | N/A |
| Right-to-left languages (Arabic/Hebrew) | No | Yes () | Yes (difficult) | No |
| Combine different customizations | Yes | Yes | Yes | Yes |
| In ISE 3.1 and later, the Portal Customization menu described below has been removed. You no longer need to Enable Portal Customization with HTML and JavaScript - it will work automatically. |
In ISE 3.0 and earlier, you must allow JavaScript to be used in the portal page customizations :
Access your ISE administrative web interface.
Choose Administration > System > Admin Access > Settings > Portal Customization
Select Enable Portal Customization with HTML and JavaScript
| Note: While in HTML Source you can enter HTML, Javascript and CSS |
In this exercise you will enable ISE customization to use JavaScript to move an element “Don’t have an account” from the bottom of self-registration login page to the top. Here is an example of a self-registration portal that this exercise would change.
When working with JavaScript injection on the portal pages, it only affects the page and language you made the change on. If you would like this to happen across multiple languages, for example, then you will need to make the change using the Language Properties files or using our global CSS. We will cover that in a later exercise.
For this example we are going to resize the message text, “Don’t have an account” and move it to the top of the screen so it’s more visible.
<script>
$('#ui_login_self_reg_button').insertAfter('#ui_login_instruction_message');
</script>
<style>
#ui_login_self_reg_button { font-size:2em; }
</style>
| Note: Not all modifications will show in the mini-preview. For those that don’t, use the portal test url shown below. |
| Note:
These changes are only for the English language portal (or whatever language you implement it in). Some customers will be fine with this, for example a U.S. University where everyone should be able to understand a basic English Guest Portal. For those instances the recommendation would be to always present English regardless of the Guest’s browser locale settings. Otherwise if a user accessed the Guest Network using a browser set to another language they would not see this modification as it was only made on the English portal. This setting is under Portal Behaviour and Flow Settings > Portal Settings > Display Language: Always Use |
If you would like to see this change on other languages then you will need to use one of the following methods:
Click on Japanese and then look at the preview and notice the “Don’t have an account” text is in its original place at the bottom under the button.
You have completed working with JavaScript usage in the mini-editor.
| Note: This customization can still be combined with other changes to the page editors and CSS. |
In ISE 1.3 and higher there isn’t a repository for storing files that are used for web portal customization. The logo and banner files that are uploaded are not visible via the admin UI outside of the portal. These files are also specific to each of your portals so if you upload a logo/banner for a hotspot you will need to upload the same files again for a credentialed portal. There is no global view of these uploaded files.
In this Exercise you will learn how to host an image on ISE, specifically a background image. The images can be hosted on ISE under the File Remediation resources or on a separate web server.
You will need an Advanced or Apex license installed on ISE to be able to see the File Remediation location.
This would also work for advertisements, announcements, or other files.
The same method can be used for images hosted on an external server. If the images are hosted on an external server, then the guest ACLs will need to make sure that the guest device can access that server without redirection.
.ui-bar-a {
border: 1px solid #d3d3d3 /*{a-bar-border}*/;
background: #4ea4f4 /*{a-bar-background-color}*/;
color: #ffffff /*{a-bar-color}*/;
font-weight: bold;
text-shadow: 0 /*{a-bar-shadow-x}*/ 0 /*{a-bar-shadow-y}*/ 0 /*{a-bar-shadow-radius}*/ #0a569c /*{a-bar-shadow-color}*/;
background-image: -webkit-gradient(linear, left top, left bottom, from( #4da2f1 /*{a-bar-background-start}*/), to( #4ea5f6 /*{a-bar-background-end}*/)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient( #4da2f1 /*{a-bar-background-start}*/, #4ea5f6 /*{a-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient( #4da2f1 /*{a-bar-background-start}*/, #4ea5f6 /*{a-bar-background-end}*/); /* FF3.6 */
background-image: -ms-linear-gradient( #4da2f1 /*{a-bar-background-start}*/, #4ea5f6 /*{a-bar-background-end}*/); /* IE10 */
background-image: -o-linear-gradient( #4da2f1 /*{a-bar-background-start}*/, #4ea5f6 /*{a-bar-background-end}*/); /* Opera 11.10+ */
background-image: linear-gradient( #4da2f1 /*{a-bar-background-start}*/, #4ea5f6 /*{a-bar-background-end}*/);
}
with this text:
.ui-bar-a {
border: 1px solid #d3d3d3 /*{a-bar-border}*/;
color: #ffffff /*{a-bar-color}*/;
font-weight: bold;
text-shadow: 0 /*{a-bar-shadow-x}*/ 0 /*{a-bar-shadow-y}*/ 0 /*{a-bar-shadow-radius}*/ #0a569c /*{a-bar-shadow-color}*/;
}
| Note: In general we are removing all of the gradient sections as they are replaced by the background image |
Replace the .ui-body-a and .ui-overlay-a CSS classes :
.ui-body-a,with the following text
.ui-overlay-a {
border: 1px solid #d3d3d3 /*{a-body-border}*/;
color: #666 /*{a-body-color}*/;
text-shadow: 0 /*{a-body-shadow-x}*/ 0 /*{a-body-shadow-y}*/ 0 /*{a-body-shadow-radius}*/ #ffffff /*{a-body-shadow-color}*/;
background: #ffffff /*{a-body-background-color}*/;
background-image: -webkit-gradient(linear, left top, left bottom, from( #ffffff /*{a-body-background-start}*/), to( #ffffff /*{a-body-background-end}*/)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient( #ffffff /*{a-body-background-start}*/, #ffffff /*{a-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient( #ffffff /*{a-body-background-start}*/, #ffffff /*{a-body-background-end}*/); /* FF3.6 */
background-image: -ms-linear-gradient( #ffffff /*{a-body-background-start}*/, #ffffff /*{a-body-background-end}*/); /* IE10 */
background-image: -o-linear-gradient( #ffffff /*{a-body-background-start}*/, #ffffff /*{a-body-background-end}*/); /* Opera 11.10+ */
background-image: linear-gradient( #ffffff /*{a-body-background-start}*/, #ffffff /*{a-body-background-end}*/);
}
.ui-body-a,
.ui-overlay-a {
border: 1px solid #d3d3d3 /*{a-body-border}*/;
color: #666 /*{a-body-color}*/;
}
}
body .cisco-ise-content {
background-color: white ;
}
body{
background-image: url("/auth/packages/iseiscool-guestbackground/iseiscool-background.jpg")!important;
background-size: cover;}
.ui-dialog-contain > .ui-content {
background: none repeat scroll 0 0 white;
}
body .ui-dialog .ui-dialog-contain .ui-header {
background: none repeat scroll 0 0 #0a569c;
}
.progressWizard .ui-bar-a.step-inner {
background: linear-gradient(#4da2f1, #4ea5f6) repeat scroll 0 0 #4ea4f4;
}
Go back to ISE and login if needed and navigate back to same section. If the page is still open skip to 0
Choose Guest Access > Configure > Guest Portals > Hotspot Guest Portal (default)
Choose Portal Page Customization
Select Advanced Customization > Export/Import Themes
Browse for the iseiscool-guest.theme.css file located on the Desktop.
Enter a theme name such as iseiscool.
Click Save
Notice your theme is now applied and the Tweaks button is now disabled? If you need to change your colors the recommendation would be to first tweak your colors, then export the CSS to add the background.
Click Save at the top of the Portal Customization screen
You will need to click on the Portal Test URL to see the change.
Background final example:
This customization can still be combined with other changes to the page editors and CSS.
| Note: Not all tweaks will be shown in the mini-preview |
ISE built-in customization options allow you to tweak basic items such as banner, background, text color/sizing/bolding and the wording of the text. If you would like to tweak more items such as button or background colors then you can do that with JavaScript/CSS (if you have someone experienced in that or find some code that may work and be tweak if they have time to mess around with it).
For tutorials on how to use HTML, CSS, and Javascript code to customize the text and content that appears on your portal pages, visit Code Academy.
In this exercise we will go over the very basics on how to export, tweak and import a theme using the jQuery site. For more information about ISE and jQuery, see the the ISE Administrator Guide.
Go to the ISE UI and login if needed
Choose Guest Access > Configure > Guest Portals > Self-Registered Guest Portal (Default)
Choose Portal Page Customization
Select Advanced Customization > Export/Import Themes
Choose the Default Blue Theme
Select Export Theme CSS
Save the file to your desktop
In your web browser, open a new browser tab and navigate to http://themeroller.jquerymobile.com/
To edit the default Cisco-provided CSS files or create new files based on the CSS classes and structures defined in the default themes, use the required version of jQuery Mobile ThemeRoller (Release 1.3.2).
In the upper left of the page Switch to version 1.3.2
Click on the Get Rolling button in the middle of the page.
Open guest.theme.1.css file from your desktop with a text editor
Select all your text
Copy all your text
Change back to the jQuery tab open in your browser
Select Import or upgrade at the top of the tool page
Paste the text into the jQuery Import Theme box.
Click Import
You will notice how the jQuery screen has changed. It now reflects the default blue theme on ISE.
The scheme of Cisco's end-user portals is compatible with jQuery ThemeRoller. You can easily edit the look for an entire portal using the ThemeRoller web site. ThemeRoller “swatches” each contain a unique scheme, which defines the colors, textures, and font settings for the primary UI elements, such as toolbars, content blocks, buttons, list items, and font text-shadow. A scheme also defines the settings for various interaction states of the buttons: normal, hover, and pressed.
Cisco ISE uses three swatches:
Notice the Sponsored Guest Portal.
The first example, the text input matches Swatch A and the button matches Swatch B.
For the next example, I clicked Login without entering any credentials and let the page time out. This looks shows error conditions from Swatch C.
You cannot apply additional swatches, unless you add HTML code (to the Optional Content, for example) with elements that use the newly added swatches. This is beyond the scope of this document and would require someone with advanced web publishing skills.
For additional information on swatches and themes in jQuery Mobile ThemeRoller, see "Theming Overview" in Creating a Custom Theme with ThemeRoller. Use the online help in jQuery Mobile ThemeRoller to learn how to download, import, and share your custom themes.
For tutorials on how to use HTML, CSS, and Javascript code to customize the text and content that appears on your portal pages, visit Code Academy.
Let’s try changing some of the elements and see how they show in our portal on ISE.
Swatch A - Drag a color from the top color chooser of the tool page to the background
Swatch B – change your Active item, such as the Button Color
Swatch C – if you choose to change error conditions color
Click on Download theme zip file
Give it a theme name of jquery and click Download Zip
Open the Zip file.
Open the themes Folder
| Note: There is more than one CSS file, ISE only uses the jquery.css |
Drag the file, jquery.css, to the downloads folder
Open up ISE in your browser and login if needed
Navigate to Guest Access > Configure > Guest Portals
Choose the Sponsored guest portal (default)
Choose Portal Page Customization
Choose Advanced Customization > Export/Import Themes
Browse into the download folder for the file, jquery.css
Give it a Theme name of jquery
Click Save.
Click Save
Choose Portal Test URL
Review your changes
| Note: This customization can still be combined with other changes to the page editors and CSS. |
I would advise you to work with the support team on the ise portal builder, they support lots of people working with it and successfully implementing portals
They have webex with people weekly and provide special fixes and JavaScript customization
There is also a new uploaded tool (not needing a Firefox addon
I am confused why you're posting this comment on this document posting? What's the relevance? Do you have a question on this document?
Thanks
@grabonlee please open a new community post. There are no HTML files to edit directly. all the options are in the doc.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: