How To Change the Default Website Widget Greeting Message

Updated 5 months ago by Allie Adams

Changing the Default Website Widget Greeting Message

The default greeting message on your website chat widget is "Hi! How can we help you?" 

To change the greeting text in your website widget, you need to change the code on your site.

Find the following area of code on your site.

You will need to insert the two bold lines into your code.

Replace the default words with your desired greeting text in place of the red "Hi! How can we help you?".

CODE:

<script>

var chatDiv = document.createElement('div');

chatDiv.className = 'fb-customerchat';

chatDiv.setAttribute('page_id', '1748698192029591');

chatDiv.setAttribute('ref', '441375e2e1cb43f20c69055e71ac6c5c061665a4e906f2b63c');

chatDiv.setAttribute('logged_in_greeting', 'Hi! How can we help you?.');

chatDiv.setAttribute('logged_out_greeting', 'Hi! How can we help you?.');

document.body.appendChild(chatDiv);

window.fbAsyncInit = function() {

  FB.init({

appId    : '2015199145383303',

autoLogAppEvents : true,

    xfbml            : true,

    version          : 'v2.12'

  });

};

(function(d, s, id){

   var js, fjs = d.getElementsByTagName(s)[0];

   if (d.getElementById(id)) {return;}

   js = d.createElement(s); js.id = id;

   js.src = "https://connect.facebook.net/en_US/sdk.js";

   fjs.parentNode.insertBefore(js, fjs);

 }(document, 'script', 'facebook-jssdk'));

</script>




How did we do?