Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Show Facebook Messenger chat on some pages not all


BevR

Question

Site URL: https://livingfabulously.com/invite-sleep-fabulously-sound-circle

I installed the FB messenger code-injection in the site footer however when you're on a mobile device where I want someone to subscribe the chat logo is persistently blocking the button or the recaptcha check box.

How can I show the Facebook Messenger chat only on some pages not all?

Thanks everyone!

This is the code-injection I'm using

<!-- Load Facebook SDK for JavaScript -->
      <div id="fb-root"></div>
      <script>
        window.fbAsyncInit = function() {
          FB.init({
            xfbml            : true,
            version          : 'v7.0'
          });
        };

        (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_GB/sdk/xfbml.customerchat.js';
        fjs.parentNode.insertBefore(js, fjs);
      }(document, 'script', 'facebook-jssdk'));</script>

<!-- Your Chat Plugin code -->
      <div class="fb-customerchat"
        attribution=setup_tool
        page_id="1114362698615277"
  theme_color="#10e4f6"
  logged_in_greeting="So good you're here! If you have any questions, pls let me know 🌸"
  logged_out_greeting="So good you're here! If you have any questions, pls let me know 🌸">
      </div>

Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Posts

To hide FB chat on One page, add this to Page Settings > Advanced > Header (each page has page header) <style> div#fb-root { display: none; } </style>  

2 answers to this question

Recommended Posts

  • 0

To hide FB chat on One page, add this to Page Settings > Advanced > Header (each page has page header)

<style>
  div#fb-root {
    display: none;
}
</style>

 

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...