Changing the Login Page Background Image and Welcome Message
EmpowerID provides an overrides directory within the EmpowerID Web CDN that can be used to customize the theme of the Web site. This allows you to change the default look and feel of the site to match your corporate brand or that of a partner who uses the site. To do so, you place the appropriate CSS files, images and scripts within the specified folders of the overrides directory. EmpowerID then "picks up" your files from the overrides directory, replacing the application's default files with them. This topic demonstrates this by showing you how to change the logo that appears on each page of the Web site.
Changing the background image on the Login page involves overriding the CSS class that defines the image. In EmpowerID, this class is the eid-login-custom class, which contains properties that define the class. When replacing the image, you override the background-image property so that it points to the new image.
To override the default background image, you create an overrides.css file with a custom definition for the eid-login-custom class and place that file within the overrides directory mentioned above. The path to the file is critical as EmpowerID will not incorporate your changes if the path is incorrect. In a default installation of EmpowerID, the path looks as follows:
To add the custom background image to the overrides directory
From your EmpowerID server, navigate to \Program Files\TheDotNetFactory\EmpowerID\Web Sites\EmpowerID.Web.Cdn\Overrides\Themes\EmpowerID\Images. If you are missing any the folders, please create them.
Place your custom background image in the Images folder, as shown by the below image. In the image, the name of the background image is coffeeshop; however, the name is not important.
To override the eid-login-custom CSS class
Using any text editor create a CSS file named overrides.css (if it does not already exist) and place it in the EmpowerID folder that is located within the EmpowerID Web CDN Overrides directory. The path to the file should be "\Program Files\TheDotNetFactory\EmpowerID\Web Sites\EmpowerID.Web.Cdn\Overrides\Themes\EmpowerID\overrides.css".
Add code to overrides.css to replace the default background image on the login page with your custom one. This code needs to override the background-image property of the eid-login-custom class.
Be sure to replace the name of image in the below code example with your image.
The Welcome Message that appears on the Login page is a Localized String object that can be changed to allow you to display a message that reflects your corporate brand. This procedure demonstrates how to do so.
From the Navigation Sidebar, navigate to the Locale Key Entry page by expanding Admin > Miscellaneous and clicking Localized Text.
From the Localized Strings tab of the Locale Key Entry page, search for Welcome to EmpowerID.
From the Search Results grid, click the LoginPageWelcome link.
From the Locale Key Details page that appears, click the Welcome to EmpowerID edit link. Edit links have the Pencil icon.
Replace the text in the Default Value field with your custom message.
Click the Translations tab and edit each translation as needed by clicking the Edit icon to the left of the translation records.
In the Translated Text dialog that appears, replace the text in the Value field and then click Save.
Log out of the Web application and reset IIS.
To test the CSS and text override
From your browser, navigate to the Login page for the EmpowerID Web application.
You should see that the default Welcome Message and background image have been updated to reflect the changes you made.
You can revert back to the original logo by removing the eid-logo class from the overrides.css file.