Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #593951

    1. Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.
    <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 = “//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=xxxxxxxxxx”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));</script>

    2. Place the code for your plugin wherever you want the plugin to appear on your page.
    <div class=”fb-comments” data-href=”xxxxxxxxxxxxxx” data-numposts=”5″></div>

    **The facebook plugin of code are divided into two.

    Item 2 I always put on the page that will use. It is the piece of code that allows the variations.

    The ai item 1, it is fixed. At what point theme should I enter the item 1. Can you help me?

    Thank´s

    #595074

    Hey ayron!

    You can add your code 1 and 2 in Code Block element or Text tab of Text Block element. Or you can go to Appearance > Widgets and create a new widget area, add text widget inside it, add your codes into it and then on your page you can add Widget Area element and choose that widget area.

    Cheers!
    Yigit

    #597255

    I already do that. I asked if he had a more suitable place to insert Part 1, as it always repeats itself.
    Setting the code 1, would make the inclusion of Part 2 only

    #598784

    Hey Ayron!

    The opening <body> tag is found in the header.php file on around line 60. Trying adding Part 1 of the code there. I would advise using a Child Theme so that these changes to the code are not lost once the theme updates.

    Let me know if this works for you.

    Regards,
    Jordan

    #598920

    I think not worth the effort. I will continue inserting the two parts of the code. thank’s

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Facebook – Social Plugin’ is closed to new replies.