Changez le texte du lien Envoyer une demande de votre centre d’aide en modifiant le code de votre thème.
Le workflow inclut les étapes ci-dessous.
Étape 1 : Vérifier les prérequis
Pour cela, vous devez modifier le code du thème du centre d’aide, ce qui n’est possible que pour les éditions Suite Growth ou supérieures.
Étape 2 : Faites une copie du thème
Pour modifier le texte du lien Envoyer une demande de votre centre d’aide, remplacez le texte dans le code qui le définit.
Avant de modifier votre thème actif, faites une copie du thème et mettez la version dupliquée à jour.
Étape 3 : Modifier le texte
Pour modifier le texte du lien
- Dans Guide, sélectionnez l’icône du Panneau de personnalisation (
) dans la barre latérale.
- Dans le thème que vous voulez modifier, sélectionnez Personnaliser pour ouvrir le thème.
- Sélectionnez Modifier le code en bas de la page.
- Sélectionnez header.hbs et remplacez le code suivant :
{{link 'new_request' class='submit-a-request'}}
par le code
{{#link 'new_request' class='submit-a-request'}}Contact Us{{/link}}
Remplacez le texte Contactez-nous par la chaîne de texte que vous souhaitez afficher.
-
Sélectionnez Publier pour enregistrer les modifications.
Le code du thème affichera le nouveau texte.
Cette modification remplacera uniquement le texte affiché sur le lien sur la page d’accueil, pas le Fil d’Ariane sur votre site. Si vous souhaitez mettre à jour ce texte partout où il est affiché, envisagez d’utiliser Javascript ou jQuery.
71 commentaire
Johannes Garske
Is it also possible to change the wording “Your email address*” when the user is not logged in?
I could not find anything regarding this in the HTML code
0
James Skene
Hi
Is it possible to change the below headers and also the text in the count in the requests page (https://mycompanyname.zendesk.com/hc/en-us/requests) ?
I would like to replace requests with tickets so they would become My Tickets, My Organizational Tickets and 1-15 of 19 tickets
Thanks
James
0
Ifra Saqlain
@SUNIL WANKHEDE, I tried to change the popup text and you can change but showing ticke IDs is not possible (For me). That popup comes from backend, that's not exist in HBS files.
I have three different forms so I copied the class name and added custom JS code that worked but when I added helper to show ticket ID it did not work.
Code, I tried -
0
Sunil Wankhede
It looks like I am able to solve issue #2 using https://support.zendesk.com/hc/en-us/community/posts/4409222615706-Tip-How-to-hide-blank-ticket-fields-on-customer-side
0
Sunil Wankhede
Hi Ifra,
Thank you very much for quickly and expertly resolving my problem; you are truly amazing.
I have a few more questions; if you can help me with guidance, that would be very helpful.
#1 After submitting the request, a small pop-up window says request submitted. Will that be editable, and can we add the ticket ID to the same as well?
#2 It does have an option to see ticket details, but when I open it, it shows a lot of detail and fields not appropriate for requests. Can we hide them?
0
Sunil Wankhede
Hi Ifra,
Thank you very much for quickly and expertly resolving my problem; you are truly amazing.
I have a few more questions, if you help me with guidance would be very helpful.
#1 After submitting the request, a small pop-up window says request submitted, will that be editable and can we add the ticket ID in the same as well?
#2 It does have an option to see ticket details but when I open it, it shows a lot of detail and fields not appropriate for requests. Can we hide them?
0
Ifra Saqlain
Hi SUNIL WANKHEDE,
You have to change code for the mobile and desktop versions in the same file. See the given screenshots:
For the Desktop version - line no. 17
For the Mobile version - line no. 86
Replace both lines with the given code -
For the Desktop - line no. 17
For the mobile - line no. 86
If any issues feel free to ask :)
Thanks
0
Sunil Wankhede
Hi Team,



I am able to update the "Submit the request", text with new one, using below code.
// translate 'submit a request' to 'Submit a Survey'
Array.prototype.forEach.call(document.querySelectorAll('a,h1,li'), function(a) {
if (a.textContent.includes("Submit a request")) {
a.textContent = 'Submit a Survey';
}
});
I am also able to update hyperlinks at the top. By adding the below in the header.hbs
{{#link 'new_request' class='submit-a-request'}}Submit the Survey{{/link}}
But when I check for the mobile version, I see an issue with clicking on the Submit the Survey option, or, we can say, I am even not able to click on it.
Kindly help on priority.
0
Ifra Saqlain
Hey Chris Boyd,
When you set the textContent property, all child nodes are removed and replaced by only one new text node. (Reference)
So the anchor tag has been removed from the anchor tag of 'Submit a request' link and that's why it's not clickable.
Simple and easy way is, go to the templates and replace the string of 'Submit a request' with
{{#link class="submit-a-request"}} Contact Us {{/link}}
We use custom JS when there isn't a way to edit the code of the templates.
Hope it helps !
0
Chris Boyd
Hi!
I notice in the latest Copenhagen theme (3.10) the document.addEventListener function seems to have been replaced with window.addEventListener which means that the below method of changing the 'Submit a request' everywhere no longer works - the submit a request in the header is changed but no longer a hyperlink. Does anyone have a workaround?
Thanks in advance!
0
Vous connecter pour laisser un commentaire.