Facebook Like button on Indexhibit CMS 2

ArnoB / 2013-07-19 12:04:55   

Hi,

I've just updated my Indexhibit and I would like to put back the Facebook Like Button.

I used to place the following code below my navication bar

  1. <div class="fb-like" data-href="facebook.com/Arnaud.Brihay.Visual.Art" data-send="true" data-layout="button_count" data-width="200" data-show-faces="false"></…;
  1. and in the index, the following one after <body>
  2. <div id="fb-root"></div>
  3. <script>(function(d, s, id) {
  4.   var js, fjs = d.getElementsByTagName(s)[0];
  5.   if (d.getElementById(id)) return;
  6.   js = d.createElement(s); js.id = id;
  7.   js.src = "//connect.facebook.net/fr_FR/all.js#xfbml=1";
  8.   fjs.parentNode.insertBefore(js, fjs);
  9. }(document, 'script', 'facebook-jssdk'));</script>

Now, I do not know where to place the last one. I've tried in index.php but it does not work. I've search into the forum but the question is always for the old version of Indexhibit. I've seen some ve site with the button, so it might be possible.

Thanks for your help and best regards,

Arno

arsondpi / 2013-07-19 15:28:03   

Check out this thread: indexhibit.org/forum/thread/16703/
:-)

ArnoB / 2013-08-17 08:18:27   

Thank you but this is to add a "Share on FB" link. What I'm looking for is the "LIKE" button.

Actually, FB updated their buttons' format option and give code for iFrame on this link:
developers.facebook.com/docs/reference/plugins/like/

You customize your button and copy the iframe code to YOURSITE.com/ndxzstudio/

arsondpi / 2013-08-17 08:36:40   

Great - only you don't need to paste it there but rather either in a text box or a template file (index.php of your theme etc)

This thread has been closed, thank you.