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.
To update the logo URL
- Upload your logo image to the Assets area, as described in Uploading and using your own assets.
Make a note of the image's URL.
- Click the Customize design icon (
) 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="https://path_to_image/image.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.
4 Comments
Hi
Wondering how to change the alt text from Home for the Help Centre Logo?
I've tried:
But no luck. Is this possible? I'd still like to use the standard {{settings logo}} placeholder so I can simply upload brand logos from the edit page (not have to upload them as new assets every time).
hey,
how can I tell what is the correct path-to-image?
after I have already uploaded the image to my assets?
Gravity CX (APAC Reseller) you can just add the
in place of the current link conditions while keeping the image source from the settings.
Please sign in to leave a comment.