2you Posted December 22, 2020 Share Posted December 22, 2020 Bonjour, Je voudrai rajouter ce code Facebook messenger dans mon site, mais je n'arrive pas a trouver où ni comment; merci ! <!-- Load Facebook SDK for JavaScript --> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ xfbml : true, version : 'v9.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/fr_FR/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="103390091660561" theme_color="#7646ff" logged_in_greeting="Une Question? Besoin d'Aide? Un probleme?" logged_out_greeting="Une Question? Besoin d'Aide? Un probleme?"> </div> Link to comment Share on other sites More sharing options...
Rhobur Posted December 26, 2020 Share Posted December 26, 2020 You can either use a module like https://contentbox.org/ to add JS to footer or simply insert that JS code into your footer.tpl, e.g. in templates/_partials for the Classic theme. Link to comment Share on other sites More sharing options...
2you Posted December 27, 2020 Author Share Posted December 27, 2020 On 12/26/2020 at 11:13 AM, Rhobur said: You can either use a module like https://contentbox.org/ to add JS to footer or simply insert that JS code into your footer.tpl, e.g. in templates/_partials for the Classic theme. thanks a lot, please don't never close this topics, Spacieba. 1 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