Recent searches
No recent searches
change text label of button
Posted Mar 14, 2019
Good morning,
I am working with the chat system. I would like to change the text of the the chat button (online und offline status)
Online:
Offline:
Now I would like to change the strings "Chat" and "Hilfe"
I found this documantion: https://developer.zendesk.com/embeddables/docs/widget/settings#chatlabel
This Code works fine for the online status button:
<script type="text/javascript">
window.zESettings = {
webWidget: {
launcher: {
chatLabel: {
'*': 'My new online button text'
}
}
}
};
</script>
for the online and offline button status text I should use this code:
<script type="text/javascript">
window.zESettings = {
webWidget: {
contactOptions: {
enabled: true,
chatLabelOnline: { '*': 'My new online button text' },
chatLabelOffline: { '*': 'My new offline button text' }
}
}
};
</script>
But this code doesn't change anything. Where is my fault? Thanks a lot :)
0
7 comments
Ramin Shokrizadeh
Hi Riccardo,
Since you are using the contact form, you will need to set that label. There is more information on that API here: https://developer.zendesk.com/embeddables/docs/widget/settings#label
-Ramin
0
Riccardo Weyerstraß
thank you very much :)
a few questions more:
The same for the button "Nachricht senden" and "Fertig"
Thank you very very much for your support :)
0
Ramin Shokrizadeh
1. Not possible today
2/3. https://developer.zendesk.com/embeddables/docs/widget/settings#title will change the title of the window, you can set per experience (for Chat and for the contact form)
For the button text, you can change it using this API: https://developer.zendesk.com/embeddables/docs/widget/settings#contactbutton
You cannot change the colour of the text or the ticket sent screen copy, those are predefined.
-Ramin
0
Riccardo Weyerstraß
Thans a lot :)
0
Markus Wanning
Hello,
i have a question to exact the same topic.
I want to change the label name of the button when shown "offline". The shown "Hilfe" isn't responding to me.
I do not know where to enter the code to. I entered it in the footer.php of my wordpress theme, but no changes do apply.
Can you tell me where to enter the code to?
Used code to change the "Hilfe" button i used
Regards,
Markus
0
Dan Ross
Hey Markus,
Try checking out these settings instead: https://developer.zendesk.com/embeddables/docs/widget/settings#chatlabel
and https://developer.zendesk.com/embeddables/docs/widget/settings#chatlabeloffline
I think you've got the right idea, but are changing the label on the wrong settings.
Hope that helps.
0
Alex Ammerman
Since you've followed the provided code structure correctly, a possible solution could involve checking if the code is placed within the appropriate location in your website's codebase.
Additionally, ensure there are no conflicting scripts or errors elsewhere that might be affecting the button text change.
1