Facebook plugin

Posted in: Newspaper
Post count: 8

Hi,

I’m new on newspaper theme and I know very little about coding, I made a search on this forum and I’havent found anything about my request, so I try to ask

I would like to include in my website, in the sidebar, the official box from Facebook (called Facebook Page plugin). In Facebook developer site I get 2 pieces of code:

1. javascript “<div id=”fb-root”></div>
<script>(function(d, s, … etc…

2. an Html “<div class=”fb-page” data-href=…

I have to include the “JavaScript SDK on your page once, ideally right after the opening <body> tag.”
And the second one “Place the code for your plugin wherever you want the plugin to appear on your page.”

Is anyone so kind to replay with a simple tutorial on how to place codes in newspaper theme?

Thanks in advance

Luca

Post count: 22421

Hello,
Please add your first part of the code in the Header.php file like so: http://screencast.com/t/dVMXjsRh
Just copy and paste it inside the body tag.
Then you can use your facebook plugin code in a raw html element in visual composer to display your widget:
http://screencast.com/t/ULY0Hg5jv7Khttp://screencast.com/t/r1ekHOSeAZbB
I hope this helps.
Thank you!

Post count: 8

Dear Bogdan,

great tips 😉
Thanks a lot!

Have a nice day

Luca

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.