Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Looking for <body> tag for Facebook Page Plugin  (Read 3124 times)

Offline premiersports

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Looking for <body> tag for Facebook Page Plugin
« on: March 07, 2016, 05:41:41 PM »
Hi

I am new to abantecart, I am trying to make a new block for a Facebook page plugin, but cannot see where I can add the Javascript code. I am using FoxY theme, I tried to paste it into footer.tpl but it made my footer disappear. Can anyone help?

The code I need to paste is:
<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_GB/sdk.js#xfbml=1&version=v2.5&appId=853252508102802";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5813
  • Karma: +274/-2
    • View Profile
Re: Looking for <body> tag for Facebook Page Plugin
« Reply #1 on: March 09, 2016, 09:10:02 AM »
Hello.

Create HTML block http://docs.abantecart.com/pages/design/blocks/html_block.html and enable it in your template layouts

 

Powered by SMFPacks Social Login Mod