Thanks, Catalin.
Okay from that I can see:
– I cannot copy header.php to the child theme and overwrite it.
– I cannot copy loop_single_1.php (etc) files to the child theme and overwrite it.
– I can overwrite single_template_1.php (etc) files from my child theme.
If this is correct, then every time I update the theme I’ll have to make the changes in the respective files for FB comments to work. Let me know if I have got it right.
All of the files that CAN be rewritten in the child theme are presented here:
https://forum.tagdiv.com/the-child-theme-support-tutorial/
If the file you are trying to modify is not on the lit, then it has to be modified in the main theme files.
Thank you!
Hello guys! All right?
I was able to insert the comments of facebook without plugin with tranquility into my new site however, I have some pages that are very dynamic where the facebook comments have not been applied.
I have already tried to insert the code inside the page.php file however, I did not get the expected result;
Can you help me with this?
Hi,
So you modified the theme files as mentioned in the previous replies. And the Facebook comments appear in the posts. To make them appear in pages using the default page template you would have to enter the HTML code provided by Facebook in the page template.
If the page contains page builder content enter it here
– https://www.screencast.com/t/Xk3ajB3zx4
If the page does not contain composer content, enter it in the cases below that section, in the template. Haven’t tried it myself but it should work.
Thanks
Hi,
I created my single page myself. Not loop-single-1.php or 2-3-4
Now where do I put the code below?
<div class=”fb-comments” data-href=”<?php echo get_permalink($td_mod_single->post->ID); ?>” data-width=”100%” data-numposts=”5″></div>
Hi,
How exactly did you create a single page? That code can be used in the default predefined post templates by editing the loop single files, so for example in a cloud post template which does not have PHP files it will not be possible the same way.
Maybe a a different implementation is possible, by a shortcode if possible. A shortcode could be entered in a column text. Maybe some Facebook comments plugin that have a shortcode implementation can be used together with a cloud post template. I haven’t tried such a a plugin unfortunately.
Thanks
