View Single Post
Old June 22nd, 2012, 05:30 AM
nzcid nzcid is offline
Join Date: Dec 2011
Posts: 404

Originally Posted by Eric View Post
HiYou don't have to add extra code into your theme at all. You simply need to add the <div id="fb-root"></div>... line into your <head> elements section within the Factory. It's just an alternative to the way I initially posted about but does not require users to add extra code into their theme.

Okay so I added this to the header in the factory

<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); = id;   js.src = "//";   fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
Then added this line to the text file

[code]<div class="fb-like" data-href="<?php echo datafeedr_tools()->current_url(true); ?>" data-send="true" data-width="450" data-show-faces="true" data-font="arial"></div>[code]

Removed everything else from the text file first though and now we have a like and send button.

So have I done this correctly as there is a lot going on here

Last edited by nzcid : June 22nd, 2012 at 05:34 AM.