Recent searches


No recent searches

Option to have a different hero image on the help centre based on language.



Posted Jul 31, 2023

If you have a translated help centre you currently can't have any text in the hero image as it won't be translated to your other help centres. Would be nice to have the ability to select a hero image based on language. 


1

3

3 comments

Stephen Senez, hey there: I was looking into this for our first translation.

ZD uses the text variables that go into tickets, called dynamic content, to extend into the template.

You can then inlude those variables **as** the text in a hero image.

You need admin privileges to create dynamic content.

https://support.zendesk.com/hc/en-us/articles/4408894121754-Changing-your-help-center-design-based-on-your-end-user-language

1


Hi Elizabeth,

Thanks for your response, I'm a bit confused where I would insert this dynamic content. Would I insert it in the code of the template?

0


image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

Hi Steve Senez

Please go through this article I hope you will get an idea.

https://support.zendesk.com/hc/en-us/community/posts/4581644213658-Dynamic-Content-in-Guide-Search-Placeholder-

 

Second Idea Is:

Add this custom JS code to show bg-image and text when the locale is changed

 $(document).ready(function() {
  if (window.location.href.indexOf("en-us") > -1) {

   $("p.text-class").text('Hello Steve');

$(".hero").css("background-image", "url("$assets-hero-bg-imgage")");
   
}
  });


Note:
en-us - it's your Translated language
Hello Steve - Text which will be shown on translated language
$assets-hero-bg-imgage - It is uploaded image to your assets folder which will be shown on translated language


 

 

If any confusion feel free to ask :)

Thanks 

 

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post