Linking to webpage from help center
AnsweredI 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?
-
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?
-
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
TeamDiziana
-
Hi,
I'm also trying to do it but I receive an error message.
Here the original code:
{{#link 'help_center'}}{{#if settings.show_brand_name}}{{/if}}{{/link}}{{link 'new_request' class='submit-a-request'}}And I removed:And now I receive this error message:
I hope someone can help me with this ;)
Thanks in advance.
Marius
-
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?
-
Hi all,
I have followed @Traptaadv 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
-
或代表lace it with the one below it.
Thanks
-
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
-
Hi,
Thanks for everyones help.
Is it possible to add multiple links depending on the helpcenter language?
Thanks in advance.
Marius
-
Hey@...
You can use the templating helpers forcurrent_localelocated 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-propertiesExample of a conditional link based on language.
{{#is current_locale.name 'English (US)'}} https://google.com“>谷歌< / > {{/}}
{{#is current_locale.name 'Nederlands'}}https://google.nl"> Google NL {{/is}}
{{#is current_locale.name 'Deutsch'}} https://google.de"> Google DE {{/is}}
{{#is current_locale.name 'Français'}}https://google.fr"> Google FR {{/is}}
Post is closed for comments.
10 Comments