Recent searches


No recent searches

change text label of button

Answered


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

7 comments

image avatar

Ramin Shokrizadeh

Zendesk Product Manager

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


thank you very much :)

a few questions more:

  1. How can I change the icon (questionmark icon) of the offline button?
  2. How can I change the text label "Kontakt"? I would like to chance the text and the text color.
    The same for the button "Nachricht senden" and "Fertig"
  3. And here the same for the "online formular". Text color and string for "Kontakt" and for the button "Chat starten". 

Thank you very very much for your support :)

 

 

0


image avatar

Ramin Shokrizadeh

Zendesk Product Manager

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


Thans a lot :)

 

0


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

<script type="text/javascript">
                    window.zESettings = {
                        webWidget: {
                        contactOptions: {
                            enabled: true,
                            contactFormLabel: { '*': 'Leave us a message' }
                        }
                      }
                  };

 

 

 

Regards,

Markus

0


image avatar

Dan Ross

Community Moderator

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


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


Please sign in to leave a comment.

Didn't find what you're looking for?

New post