SkyHiRider Posted March 19, 2014 Share Posted March 19, 2014 (edited) <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 March 19, 2014 by SkyHiRider (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 19, 2014 Share Posted March 19, 2014 try google first result: facebook comments on cms pages Link to comment Share on other sites More sharing options...
SkyHiRider Posted March 23, 2014 Author Share Posted March 23, 2014 try google first result: facebook comments on cms pages Thanks Milos. I did google a bit but only found a plugin, my bad Link to comment Share on other sites More sharing options...
SkyHiRider Posted March 23, 2014 Author Share Posted March 23, 2014 Is there an easy way to set the width of the div globally? Link to comment Share on other sites More sharing options...
vekia Posted March 23, 2014 Share Posted March 23, 2014 you mean that you want to change width of div with comments? if so, just add width="" param to the div you pasted to cms.tpl Link to comment Share on other sites More sharing options...
SkyHiRider Posted March 23, 2014 Author Share Posted March 23, 2014 you mean that you want to change width of div with comments? if so, just add width="" param to the div you pasted to cms.tpl Tried editing the css of the main div in Chrome Dev tools but it only enlarged the outer border :/ Link to comment Share on other sites More sharing options...
vekia Posted March 23, 2014 Share Posted March 23, 2014 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 More sharing options...
SkyHiRider Posted March 23, 2014 Author Share Posted March 23, 2014 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} Tried that, had no effect :/ Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2014 Share Posted March 24, 2014 can you share url to page where you use this? Link to comment Share on other sites More sharing options...
SkyHiRider Posted March 25, 2014 Author Share Posted March 25, 2014 can you share url to page where you use this? http://www.peciatky.sk/content/22-vyroba-peciatok-pre-firmy Link to comment Share on other sites More sharing options...
vekia Posted March 25, 2014 Share Posted March 25, 2014 http://www.peciatky.sk/content/22-vyroba-peciatok-pre-firmy this is what i see: you've got width:550px; several times defined for this block, in <span> element and also in <iframe> element this is why you can't increase width of this. Link to comment Share on other sites More sharing options...
Recommended Posts