How to change the Hero Banner Text for Every Language

6 Comments

  • Louise Dissing

    Hi Edwin,

    You can accomplish this by using "Dynamic Content".
    Dynamic Content is strings you're making in Zendesk Support, that translates based on the user's country.
    You can read more about it here - there's a whole manual on how to create dynamic content: https://support.zendesk.com/hc/en-us/articles/203663356-Providing-multiple-language-support-with-dynamic-content

    Once you've created your dynamic content, you have to add it to home_page.hbs.

    Let me know if you need any further assistance.

    Best,
    Louise

    1
  • Robert

    Hi Louise, 

     

    Thanks for your effort and tips here but I'd rather solve this with some coding instead. 

    Is there a way to solve this issue via coding?

    The issue with Dynamic Content is that I don't quite get it right, to be honest. Also, the languages displayed on zendesk dynamic content are not the languages that I've been adding in the multi-language Help - Center so it's already too confusing for me.

     

     

     
    0
  • Louise Dissing

    Hi Edwin,

    I would still recommend that you read about Dynamic Content, but until then I'd say it's possible to hardcode it by looking at the URL.

    Use Javascript to find the country code in the URL and then inject the string you want it to be replaced with. 

    Look at this for finding strings in URLs with jQuery: https://stackoverflow.com/questions/4597050/how-to-check-if-the-url-contains-a-given-string
    Look here for replacing text with Javascript: https://www.w3schools.com/jsref/jsref_replace.asp

    I hope this helps you out. :-) 

    Best,
    Louise

    0
  • Robert

    Hi Louise,

     

    Thanks for your response. However, I still don't get it at all, I'm no coder so, I actually need more guidance to resolve my issue.

    This is how my code look today: 

    is there an easy code line to input quickly to simply target a specific language,

     

    Say my help-center page ends like this:  zendesk.com/hc/fr

    How can I modify the FR language version of my help-center?

    I don' want to use "Dynamic content" as I didn't understand the article here:  https://support.zendesk.com/hc/en-us/articles/203663356-Providing-multiple-language-support-with-dynamic-content

     

    Plus I already manually translated every single Article of my help-center, so I just want to be able to modify the Hero banner txt that I alreadu located it's in Home_page.hbs

     

    I hope someone here can help.

     

    Thanks in advance.

     

     

    1
  • Leah Peev

    Same - no updates here?

    0
  • Dave Dyson
    Zendesk Community Manager
    There are some more specific instructions on using Dynamic Content in the help center here, does this help? Changing your help center design based on your end user language
    0

Please sign in to leave a comment.

Powered by Zendesk