Newer Version Available
Step 3: Add a Logo Component
Return to the theme layout component to add a company logo to it.
You can add a logo to the page in several ways. You can use:
- A custom component that displays a static resource—for example, {!$Resource.MyJavascriptFile}
- A custom component and fetch the path to the asset from the server
- An out-of-the-box component, such as the Rich Content Editor
For this example, let’s use a custom component and reference a static resource called
cirruslogo. In the theme layout component, add the following code to the first slds-col container with the logo placeholder
comments.
1<div class="logoContainer">
2 <img src="{!$Resource.cirruslogo}"/>
3</div>