BevR Posted September 3, 2020 Share Posted September 3, 2020 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 comment
tuanphan Posted September 3, 2020 Share Posted September 3, 2020 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> BevR and Rolaa 2 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
BevR Posted September 9, 2020 Author Share Posted September 9, 2020 Thanks so much for your help @tuanphan Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment