Recent searches
No recent searches
Linking to webpage from help center
Answered
Posted Oct 16, 2017
I have set up our help center in the copenhagen theme, and I was wondering how I can add a link either to our company logo, or the home banner so that when people click there, they are redirected back to our homepage (and not the help center). Any suggestions?
0
10
10 comments
Trapta Singh
Hi @Jørund Thomassen Gjesvik,
You can use below code in your header template to add external link to your company logo -
Replace YOUR_WEBSITE_URL with your URL.
Let us know if you face any issue.
0
Jørund Thomassen Gjesvik
Hi, thanks for getting back to me so quickly. Tried to add the code, but got an error message - see attached screenshot. What am I doing wrong?
0
Trapta Singh
@Jørund Thomassen Gjesvik,
I apologize for the typo, please copy paste the below code -
Please replace this code with the code from line no. 3 to 5.
Thanks
Team Diziana
0
Marius
Hi,
I'm also trying to do it but I receive an error message.
Here the original code:
And now I receive this error message:
I hope someone can help me with this ;)
Thanks in advance.
Marius
0
Dave Dyson
Hi Marius -
I think the older comments may be referring to an older version of the Copenhagen theme.
Can you try substituting "" instead of "" in your code?
0
Kundenservice
Hi all,
I have followed @Trapta adv from the top and I got this included in the code:
which is working but now it looks like this:
I need to take the first logo that it located next to | Help Center away. How do I do that?
Thanks for the adv
Best
Nadine
0
Kundenservice
Or replace it with the one below it.
Thanks
0
Trapta Singh
Hi @...,
you can replace the code from {{#link 'help_center'}} to {{/link}} with the code you have added. It should fix the issue.
Let us know how it goes for you.
Thanks
Trapta
0
Marius
Hi,
Thanks for everyones help.
Is it possible to add multiple links depending on the helpcenter language?
Thanks in advance.
Marius
0
Dan Ross
Hey @...
You can use the templating helpers for current_locale located in the Header and Footer templates. You might need to check if it's supported in other templates if you need to do this elsewhere.
https://developer.zendesk.com/documentation/help_center/help-center-templates/header_page/#available-properties
Example of a conditional link based on language.
{{#is current_locale.name 'English (US)'}} <a href="https://google.com"> Google </a> {{/is}}
{{#is current_locale.name 'Nederlands'}}<a href="https://google.nl"> Google NL </a>{{/is}}
{{#is current_locale.name 'Deutsch'}} <a href="https://google.de"> Google DE</a> {{/is}}
{{#is current_locale.name 'Français'}}<a href="https://google.fr"> Google FR </a>{{/is}}
0