X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Facebook SDK and body tag (https://forum.x-cart.com/showthread.php?t=72472)

fiberglass.supply 07-22-2015 07:41 AM

Facebook SDK and body tag
 
Using 4.6.6 and ideal responsive template.

Facebook says:

Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.

What template file has the body tag for all pages?


I have to paste the code below right after the body tag

Code:

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


totaltec 07-22-2015 10:35 AM

Re: Facebook SDK and body tag
 
customer/home.tpl


All times are GMT -8. The time now is 07:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.