Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #883036

    where must i place this code to use the facebook like button.

    i have tried is with the function.php but a get an error:

    <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/de_DE/sdk.js#xfbml=1&version=v2.11&appId=251192335408952';
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    this is the code for the button inside a page:

    <div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="standard" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>

    #883037

    or must i use footer.php or header.php?

    i am using a child theme of enfold :) thank you, greetings, Alexander

    #883761

    Hi Alex,

    Where did Facebook tell you to add the code? We can give you a function to insert it on your site but we need to know where it should go?

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.