By default, clicking the logo image in your help center header returns users to the home page. You can edit the HTML in your theme to return users to a different URL.
Before you begin, be sure you've uploaded your logo image to the Assets area (see Using your own theme assets for help center) and made a note of the image's URL.
To update the logo URL
- In Knowledge admin, click Customize design
(
) in the sidebar.
- Click Customize.
- Click Edit code at the bottom of the page.
- Choose header.hbs from the templates list, and locate the logo div tag in the HTML:
<div class="logo"">
- Replace this code:
{{#link 'help_center'}} <img src="{{logo_url}}" alt="{{t 'logo'}}"> {{/link}}
with the following HTML (in bold):
<div class="logo"> <a href="http://new_url"> <img src={{asset 'uploaded-image-name.png'}} /> </a> </div>
The code inserts a linked image in the page.
- Specify the URL of the page (new_url), the path to your logo image (path_to_image), and the image name (image).
- Click Save.
0 comments
Please sign in to leave a comment.