Linking to webpage from help center

Answered

10 Comments

  • Trapta Singh
    Community Moderator

    Hi @Jørund Thomassen Gjesvik,

    You can use below code in your header template to add external link to your company logo -


    {{t '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
    Community Moderator

    @Jørund Thomassen Gjesvik,

    I apologize for the typo, please copy paste the below code -


    {{t 'logo'}}

    Please replace this code with the code from line no. 3 to 5.

    Thanks

    TeamDiziana

    0
  • Marius

    Hi,

    I'm also trying to do it but I receive an error message.

    Here the original code:

    {{#link 'help_center'}}
    {{t 'home_page' name=help_center.name}}
    {{#if settings.show_brand_name}}
    {{/if}}
    {{/link}}
    http://www.w3.org/2000/svg" width="16" height="16" focusable="false" viewBox="0 0 16 16" class="icon-menu">
    {{link 'new_request' class='submit-a-request'}}
    And I removed:
    {{#link 'help_center'}}
    {{t 'home_page' name=help_center.name}}
    {{#if settings.show_brand_name}}
    {{/if}}
    {{/link}}
    And added:

    {{t 'logo'}}

    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 @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

    0
  • Kundenservice

    或代表lace it with the one below it.

    Thanks

    0
  • Trapta Singh
    Community Moderator

    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
    Community Moderator

    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-properties

    Example 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}}

    0

Post is closed for comments.

Powered by Zendesk