Support » Plugin: CMP - Coming Soon & Maintenance Plugin by NiteoThemes » Adding Facebook Customer Chat

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

    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
    https://imgur.com/a/SLbdlin

    2. Save javascript into external something.js file, upload it to your server via ftp, and insert it to advanced > external footer scripts
    https://imgur.com/a/l5ZeQf2

    • This reply was modified 2 months, 4 weeks ago by  NiteoThemes.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.