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.


  • 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?

  • 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.



    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")");

    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 :)




Por favor, entrar para comentar.

Powered by Zendesk