How do I change 'Submit a request'?

回答済み

1 コメント

  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hi Chris Ford

     

    To change the text 'Submit a request'  on everywhere (Header, breadcrumbs and anchor tag then use the below code: https://support.zendesk.com/hc/en-us/articles/4408882823834-Can-I-change-the-text-of-Submit-a-request-in-the-Help-Center-

      // translate 'submit a request' to 'contact us'
      Array.prototype.forEach.call(document.querySelectorAll('h1,.breadcrumbs > li,a'), function(a) {
            if (a.textContent.includes("Submit a request")) {
                a.textContent = 'Contact Us';
          }
      });

     

    To change text one by one:

     document.querySelector('h1').textContent = 'Contact Us';
    document.querySelector('.breadcrumbs > li').textContent = 'Contact Us';
    document.querySelector('a.submit-a-request').textContent = 'Contact Us';

     

    Thanks

    Team

     

    0

サインインしてコメントを残してください。

Powered by Zendesk