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

3 Comentários

  • Elizabeth Brown

    Steve 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
  • Steve Senez

    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
  • Ifra Saqlain
    Community Moderator
    Zendesk Luminary
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    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

Por favor, entrar para comentar.

Powered by Zendesk