Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author NiteoThemes

    (@niteo)

    Hello, yes we do not use standard WordPress templates in order to achieve ‘coming soon’ functionality.

    But you can add the required code to the Content editor using text mode in CMP Settings, it should work as well.

    Alex

    Thread Starter cherhyc

    (@cherhyc)

    Do you mean CMP Settings > Content > Main Content > Message > Text Editor?
    I have add the code there but it wasn’t working.

    This is the code I used:

    <!-- Load Facebook SDK for JavaScript -->
    <div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
        FB.init({
          xfbml            : true,
          version          : 'v3.2'
        });
      };
    
      (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/xfbml.customerchat.js';
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    
    <!-- Your customer chat code -->
    <div class="fb-customerchat"
      attribution=setup_tool
      page_id="1057822754268049">
    </div>
    Plugin Author NiteoThemes

    (@niteo)

    Seems it is wrapped in paragraph tags, therefore it’s not working..

    You can try to do following:

    1. Insert just the HTML part into text editor like this

    View post on imgur.com

    2. Save javascript into external something.js file, upload it to your server via ftp, and insert it to advanced > external footer scripts

    View post on imgur.com

    • This reply was modified 7 years, 2 months ago by NiteoThemes.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding Facebook Customer Chat’ is closed to new replies.