Facebook chat box (Customer Chat SDK) overlaps one of the buttons on my website. How I can to move it above?
How to move Facebook chat box above/below or right/left?
2.5k Views Asked by mrlyakin At
3
There are 3 best solutions below
0
On
It is original code:
<div id="fb-root"></div>
<script>`enter code here`
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/lt_LT/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="0000000"
theme_color="#0084ff"
greeting_dialog_display="hide"
>
</div>
You can inspect the CSS and override to reposition, but this isn't recommended as it can possibly lead to unexpected breakage when future updates to the plugin occur.