Felikss Veilands
asked 6 years ago
5 Answers
BigHug
answered 6 years ago

Hi please go to <yoursite>/wp-content/themes/wallpress/assets/js/jquery.custom.js  add this code below to line 304

 for(var i=0;i<newElms.length;i++)
    FB.XFBML.parse(newElms[i]);

Hope this helps!

Felikss Veilands
answered 6 years ago

sorry, after clicking on "enter" I posted only titles 🙂 so, the problem is that in home page comments count appear only on visible items, but when I scroll down, comments count not appear. I have changed standard comments to facebook comments and comments count code I’ve added to content.php file. In which file I should make changes to see the comments on scrolled down items. My English is terrible, but I hope you understand the problem. Also, you can see the website (there you can see that with comments link all is ok, but when you’ll scroll down, on new items comments count not appear) Regards, Felix

BigHug
answered 6 years ago

Hi Felikss,

Your site integrates with facebook comment system, and uses different javascript plugin to update facebook comment count into the items when page start.

Apparently that plugin is not compatible with our DW Wallclassic. Which facebook comment plugin that you are using for your site? Would appreciate if you can provide me more information. I will look into the case and help you out.

Regards,

Felikss Veilands
answered 6 years ago

Hi Rambu,

I’ve added facebook comments script directly to comments.php file.

To show comments count, I’ve modified content.php file:

<span class=”comments-link”>
<fb:comments-count href=”<?php echo get_permalink($post->ID); ?>”></fb:comments-count>
<?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘comments’, ‘wallpress’ ) . ‘</span>’, __( ‘comments’, ‘wallpress’ ), __( ‘comments’, ‘wallpress’ ) ); ?>
</span>

Thanks!

Felikss Veilands
answered 6 years ago

Hi Rambu,
Thank you very much, works perfect!
Regards,
Felix

Powered by DW Question & Answer Pro