• Resolved MarionFW

    (@marionfw)


    I learned that in June, Facebook will replace the Facebook Like Box by a new plugin, the Facebook Page Plugin.
    I would like to add this to my website, but I’m not sure how to do this. I use the child theme of Hueman.

    The instructions are

    step 1: Include the JavaScript SDK on your page once, ideally right after the opening <body> tag. [follows a script]
    step 2: Place the code for your plugin wherever you want the plugin to appear on your page.

    Can anyone tell me where I should add the code that is provided by Facebook in the first step, an dhow exactly: is it enhough to just copy-paste?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi MarionFW. Since you’ll need to modify the theme files you should be using a child theme. If you’re not currently using one I can post some instructions on how to download it. To add the Jscript code you would copy header.php into your child theme and locate the <body> tag there. If the plugin code is HTML you could add it to sidebar widgets, or modify other theme files depneding on where you want to display it. Here’s a Facebook developer’s reference that might help. Beyond that you might check the Facebook support forum on StackOverflow for more assistance.

    Thread Starter MarionFW

    (@marionfw)

    Hi bdbrown,
    thanks, it worked. I did’nt know whether to copy the whole header.php or just the bit above the body tag, but I found that unlike the stylesheet, one needs to copy the whole header.php and add the extra jscript.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Facebook Page Plugin’ is closed to new replies.