fb & twitter developers code - where to put it?

Professional Joomla social template with metro design and JomSocial extension support.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Sep 19, 2013 9:43 pm
Reply with quote
Report this post
The instructions are to put the JavaScriptSDK code once right after <body> tag. However (M) Social index.php file looks different from before... Where do I Put the code from developers.Facebook.com so that I can use the company's like button? I'm aware of GK Gavick's Code but would like to use a different way.

Part1

<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/all.js#xfbml=1&appId=451944264863414";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

PartII
<div class="fb-like-box" data-href="https://www.facebook.com/thuto" data-width="292" data-show-faces="true" data-header="true" data-stream="true" data-show-border="true"></div>
User avatar
Gold Boarder

GK User
Thu Sep 19, 2013 11:20 pm
Reply with quote
Report this post
Body tag should be in templates/gk_templatename/layouts/default.php

See you around...
User avatar
Platinum Boarder


cron