Jump to content
nostradamus

Add facebook like and facebook comments to cms pages

Recommended Posts

if you have Facebook Like a Lot Prestashop 1.4+ module and Facebook Comments Talk a Lot Module (both are free modules! i dident make them credits go to bemcapaz)

 

and want to add like button and comments to cms pages?

 

Open cms.tpl in your theme folder

 

add this code after the last code in the cms.tpl

 

 

<div class="fb-like" data-href="{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}
" data-send="true" data-width="540" data-height="300" data-show-faces="false"></div>
<div class="fb-comments" data-href="{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}" data-num-posts="10" data-width="540"></div>

 

this will only work if you have both modules installed.

 

Demo www.bijouxenzeep.nl look at 1 of the links in the bottom menu bar

Share this post


Link to post
Share on other sites

no thanx! spend days searching the forums to find a way to do this. and if im searching for this more people are doing this. so why not share the info to do this. B)

Share this post


Link to post
Share on other sites

Thanks so much for this! But how can you limit these comments to a specific Category (eg blog)? I've tried {if $category=='blog'} But then it doesnt display anything? using 1.5 by the way

Share this post


Link to post
Share on other sites

i checked the code and it looks like it should work well in ps 1.5.4.1

have you tried it?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More