Change "Community" and "Submit a request" in Copenhagen Theme


7 댓글

  • Carsten Falborg
    Community Moderator

    Hi Matti

    If you haven't gotten help on this yet, feel free to reach out.

  • Matti S

    Hi Carsten.

    Not solved yet. I would really appreciate your help on this one.

  • Carsten Falborg
    Community Moderator

    Hi Matti

    Sorry, didn't see your reply.

    What would you like to change "Community" and "Submit a request" to? And do you want it to be multilingual? For starters these are translated by Zendesk into different languages via the "t" translation helper in the Templates, so you need to change that to your version of the two.

  • Matti S

    Some examples to clarify the question.

    <h2>{{t 'community'}}</h2>

    We do no use localization today. Is it still that feature we are to use to change Community to Ideas?

    {{link 'new_request' class='submit-a-request'}}

    Here is no translation involved. The url link and text i created by the system


    how can these be changed?

    Community -> Ideas

    Submit a ticket -> ASK a person

  • Alex Culligan

    You have options for this:

    1. Replace the helper 
      {{link 'new_request' class='submit-a-request'}} 
      with the full HTML
      <a class="submit-a-request" href="">ASK a person</a>
    2. Use JavaScript to override the text:
      $('nav.user-nav a.submit-a-request').text('ASK a person');

    The problem with JavaScript is that there could be times that the old text shows for a fraction of a second before the script overrides it; not a big deal, but some people don't like that.

    <h2>{{t 'community'}}</h2> could just be changed to <h2>Ideas</h2>. However, {{link 'community'}} should be changed the same way as {{link 'new_request' class='submit-a-request'}}.

  • Sande Corbett


    You can resolve the flash of old text with an additional line of JavaScript and a few lines of CSS. Add this line below your JavaScript override:


    And then add something like this to your CSS:

    .submit-a-request { opacity: 0; }
    .submit-a-request.loaded { opacity: 1; }

    That will hide the old text until the page is loaded. You can also get fancy with CSS transitions to fade in the opacity if you want to.

  • Nicole Saunders
    Zendesk Community Team

    This post has been closed for comments by the Zendesk Community Team. If you have a related or new question, please create a new post. 


게시물 댓글 달기가 중지되었습니다.

Zendesk 제공