thezey Posted May 20, 2014 Share Posted May 20, 2014 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 More sharing options...
thezey Posted May 20, 2014 Author Share Posted May 20, 2014 up I already created a topic a few months ago but nobody answered. I hope somebody can help me as I really need this. Thank you very much. Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2014 Share Posted May 20, 2014 check this guide how to add facebook comments to cms page if you want to add comments only to a specific page - use if condition like: {if Tools::getValue('id_cms')==5} CONTENTS OF GUIDE HERE {/if} where 5 is an ID of cms page. then comment box will appear only on that cms page. 1 Link to comment Share on other sites More sharing options...
thezey Posted May 20, 2014 Author Share Posted May 20, 2014 Fabulous. I've been searching this for months! On a similar note, do you happen to know how to add Facebook share? Thank you Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2014 Share Posted May 20, 2014 to the same page? Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2014 Share Posted May 20, 2014 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 More sharing options...
thezey Posted May 20, 2014 Author Share Posted May 20, 2014 Should I add this code to the header file or cms? Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2014 Share Posted May 20, 2014 noooo add this code to cms.tpl like you added code for comments Link to comment Share on other sites More sharing options...
thezey Posted April 22, 2015 Author Share Posted April 22, 2015 Hi, I'm reviving this thread, as I would like to include other social buttons to my cms pages. How could I do that? Link to comment Share on other sites More sharing options...
Recommended Posts