How can I change "Submit a Request" text when customizing Help Center?

Answered

41 Comments

  • Nicole Saunders
    Zendesk Community Team

    Thanks for confirming, Scott!

    0
  • BibHub

    @Peter got it, thanks for posting this!  

    There are a couple of other references throughout the Help Center that say Submit a request that you will want to catch outside of the li tag including the hyperlink (a tag) and header (h1) tags.  So in addition to what Peter has you would want to also include/add:

    $("a:contains('Submit a request')").text("Submit a Support Request");

    $("h1:contains('Submit a request')").text("Submit a Support Request");

     

    Remember, the code above is added to your js file in the Theme Editor.

     

    1
  • Mike Garrett

    Since this support chain appeared at the top of Google, a far better way to solve this is shown here

    Copied from that page:

    Replace

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

    with

    {{#link 'new_request' class='submit-a-request'}}Contact Us{{/link}}
    1
  • Nicole Saunders
    Zendesk Community Team

    Thanks for sharing, Mike. 

    0
  • Stuart Hagan

    Hi All, 

    I want to edit my HC code to say submit a ticket instead of submit a request - How do i change this? (Original code below)

     

    <header class="header">
    <div class="logo">
    {{#link 'help_center'}}
    <img src="{{settings.logo}}" alt="{{t 'logo'}}">
    {{/link}}
    </div>
    <div class="nav-wrapper">
    <span class="icon-menu"></span>
    <nav class="user-nav" id="user-nav">
    {{link 'community'}}

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

    </nav>
    {{user_info}}
    </div>

    0
  • Vladan Jovic
    Community Moderator

    Hi Stuart, you can do it in this way. Just add the following code at the end of your Header template.

    <script>
    $('.submit-a-request').text('Submit a ticket');
    </script>

    It should work! :)

    0
  • Stuart Hagan

    Brilliant! Thank you very much!

    0
  • Raul

    Hi everyone,

    Is there a way to incorporate dynamic text? I've customized the Submit a Request  text so that is reads as "Contact Us", but am looking to localize it using dynamic text. This is what I have thus far:

    $('.user-nav .submit-a-request').html('Contact us');

    I appreciate the help!

    0
  • Vladan Jovic
    Community Moderator

    Hi Raul, this code will work in that case:

    <script>
    $('.submit-a-request').text('{{dc 'dc_item_name'}}');
    </script>

    You need to replace dc_item_name with your DC item name ;)

    And put this code at the end of header template.

    0
  • Raul

    @Vladan awesome! that did it. is there a way to incorporate dynamic text on the "Submit a request" header and breadcrumb? This is what I have to customize the text for those:

    $("h1:contains('Submit a request')").text("How can we help you?");


    $("li:contains('Submit a request')").text("How can we help you?");

     

    I suppose a different logic would apply since these aren't links?

    0
  • Vladan Jovic
    Community Moderator

    Hi Raul, your code is pretty good, I've changed it a little and it should work fine. Just put it at the end of Submit a request page template:

    <script>
    $('h1, ol.breadcrumbs li:last-child').text('{{dc 'MY_DC_ITEM'}}');
    // change MY_DC_ITEM
    </script>

    0

Post is closed for comments.

Powered by Zendesk