Jump to content

How can I add Facebook comments to CMS pages?


Recommended Posts

<script> tags are blacklisted in CMS pages so I can't add the necessary FB scripts directly to the pages.

Tried adding the script to header.tpl and adding a single <div> where the comments should be shown.

 

Didn't work either.

 

I sure as hell hope that you allowed adding scripts in the new 1.6 in addition to the new GUI that probably does not solve most of the issues PrestaShop currently has as I will be using it on another site as an upgrade to my 1.4. 

 

Does the CMS text editor remove any div's that I add to the page?

 

I've added <div class="fb-comments" data-href="urltocontent.com" data-colorscheme="light"></div> and it gets removed immediately after I save the page.

Edited by SkyHiRider (see edit history)
Link to comment
Share on other sites

Tried editing the css of the main div in Chrome Dev tools but it only enlarged the outer border :/

try to add this param:

data-width="" 

or use in global.css this code:

 

.fb_ltr, .fb_iframe_widget, .fb_iframe_widget span {width: 100%!important}
Link to comment
Share on other sites

×
×
  • Create New...