Jump to content

Add Facebook Comment Box to 1 specific cms page?


Recommended Posts

Hello,

 

I have a specific CMS Page in which I'd like to add a Facebook Comment Box.

 

How to add the Facebook comment box to this cms page only (not other cms pages)?

 

Thanks,

 

p.s: Would I be able into write any html code directly to Page Content field under CMS Page Edit?

 

Working on Prestashop 1.5.4.0

Link to comment
Share on other sites

add there code like: 

{literal}
<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.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
{/literal}
<fb:share-button href="http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}" type="button_count"></fb:share-button>
Link to comment
Share on other sites

  • 11 months later...
×
×
  • Create New...