BuddyBoss Home – Web Support Forums Themes Boss. theme Adding facebook integration script in Body tag

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #54837
    @bhagwat-paraggmail-com

    Faceboook developer guide says to add a script in Body tag each page. is there a way i can do that in the boss child theme?

    
    The following snippet of code will give the basic version of the SDK where the options are set to their most common defaults. You should insert it directly after the opening <body> tag on each page you want to load it:
    <script>
      window.fbAsyncInit = function() {
        FB.init({
          appId      : 'zzzzzzzzzzzzz',
          xfbml      : true,
          version    : 'v2.5'
        });
      };
    
      (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 = "//connect.facebook.net/en_US/sdk.js";
         fjs.parentNode.insertBefore(js, fjs);
       }(document, 'script', 'facebook-jssdk'));
    </script>
    You can also configure the SDK with advanced settings.
    
    

    Answers

    #54861

    Anonymous
    @

    Hi @bhagwat-paraggmail-com
    You can add inside header.php of the child theme
    Regards
    Varun Dubey

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Adding facebook integration script in Body tag’ is closed to new replies.