AbanteCart Community
Shopping Cart Operations => Support => Topic started by: premiersports 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>
-
Hello.
Create HTML block http://docs.abantecart.com/pages/design/blocks/html_block.html and enable it in your template layouts