johnny Posted March 28, 2018 Share Posted March 28, 2018 Bonjour, Je cherche à intégrer le module de discussion client par Facebook. On me dit d'ajouter un script avant chaque balise <body> des pages souhaitées. <!-- Load Facebook SDK for JavaScript --> <div id="fb-root"></div> <script>(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.js#xfbml=1&version=v2.12&autoLogAppEvents=1'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <!-- Your customer chat code --> <div class="fb-customerchat" page_id="xxxxxxxxxxx" theme_color="#FFFFF"> </div> Cependant je ne trouve pas où le mettre dans mes fichiers. J'ai essayé dans index.php, cela fait planté le site, dans le thème, dans un module. Rien à faire.. cela ne marche pas. Y'a surement une solution toute simple à mon problème, pouvez-vous me donner un coup de main ? Merci d'avance. Link to comment Share on other sites More sharing options...
Eolia Posted March 28, 2018 Share Posted March 28, 2018 bah oui, dans le <head> du header.tpl de votre thème Mais bon, ça c'est un truc qui fait ramer les sites sur mutualisé à mort hein^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now