Roadmap: Creating a custom theme | HCL Digital Experience
This roadmap highlights how to create the custom theme of the design from an HTML component. The theme is used to customize the site builder template and other page templates for the new site that the content author creates.
Who should use this roadmap
You are a developer on the technical team that is tasked with implementing the HTML prototype. You are responsible only for creating a custom theme and replacing the default logo with your company logo. Other developers are responsible for developing other pieces of the design. Learn the basics of creating and changing the theme logo to reflect your business.
Creating your custom theme
Procedure
- Click the Applications menu icon. Then, click Theme Development.
- Click Create Theme.
- In the Title field, enter Greenwheels.
- From the Template menu, select Simple.
- Click Create.
- When the dialog indicates that your theme was successfully created, click Done.
Now that you created your new theme, you can customize its look and feel.
- From the Theme Manager, locate Greenwheels and select Manage properties.
- In the General tab, select 1Column from the Default Layout menu.
Results
Changing the theme logo
Before you begin
Procedure
- Create the directory ThemeLogo.
- Use a WebDAV client to download the Greenwheels theme.
- Open the directory ThemeLogo.
- Upload your new logo to a folder in the theme, such as Greenwheels/css/images. In this example, the new logo is a .png image called logo.png.
- Open the theme.html file in the root theme folder, Greenwheels/theme.html.
-
Locate the following code string:
<svg class="stLogo" role="img" aria-label="HCL Digital Experience"> <title>IBM Digital Experience</title> <use xlink:href="#stBee"></use> </svg>
. -
Replace the code string in Step 9 with the following code string:
<img alt="Logo" src="css/images/logo.png">
. - Save the file.
- Use a WebDAV client to upload the changed files of your theme.