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

回答済み

7 コメント

  • Carsten Falborg
    コメントアクション Permalink

    Hi Matti

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

    0
  • Matti S
    コメントアクション Permalink

    Hi Carsten.

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

    0
  • Carsten Falborg
    コメントアクション Permalink

    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.

    0
  • Matti S
    コメントアクション Permalink

    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

    So,

    how can these be changed?

    Community -> Ideas

    Submit a ticket -> ASK a person

    0
  • Alex Culligan
    コメントアクション Permalink

    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="https://subdomain.zendesk.com/hc/en-us/requests/new">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'}}.

    0
  • Sande Corbett
    コメントアクション Permalink

     

    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:

    $('.submit-a-request').addClass('loaded');

    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.

    1
  • Nicole - Community Manager
    コメントアクション Permalink

    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. 

    0

投稿コメントは受け付けていません。

Powered by Zendesk