Recent searches
No recent searches
How to quickly add an outside (or non-helper) link in your header or other pages in your Guide theme
Posted Jan 22, 2018
Sometimes it may make sense to provide a direct link to a category, topic or non zendesk page. Anything that is not a helper type link that Zendesk provides. In this example we'll include a simple html link in the header, but this can apply to other areas of he site as well. Don't worry! Even you know zero code this is super easy!
Here is the standard theme header with a few links. Let's add another one called "Other Category" which will link us to a specific category:
You'll need to get into your theme and edit it.
Next click on header.ebs as this is the file we need to edit:
In here you'll add a simple html link into the existing code as follows:
<nav class="user-nav" id="user-nav">
{{link 'community'}}
{{link 'new_request' class='submit-a-request'}}
<a href="https://yourcompanyname.zendesk.com/hc/en-us/categories/360000014392-Other" target="_blank">OtherCategory</a>
</nav>
Of course, make sure to change it to your actual company name and you'll need the html link to your category or section. You can do that by right clicking on your existing link and copy the URL. Or put in any URL for the link you want.
So now, this is what it will look like with a link in the header to your category: Simple!
If you want the link to open in another tab simply add the target="_blank" attribute:
<a href='https://yourcompanyname.zendesk.com/hc/en-us/categories/360000014392-Other target="_blank'>OtherCategory</a>
Here are some additional resources for getting started on editing your theme:
https://developer.zendesk.com/apps/docs/help-center-templates/introduction
0
6 comments
Sign in to leave a comment.