Hello Michael,
Greetings!
In our Facebook comments plugin, [add_filter (‘the_content’, ‘commentscode’);] hook is used (added at the top of user-file.php) for display Facebook comments box below the page/posts contents and same hook is also used in JetPack Sharing buttons.
So , If you want to show Facebook comments below JetPack Sharing buttons please set priority for these hooks.
For this, add priority at the end of hook like 100.
Change hook [add_filter (‘the_content’, ‘commentscode’);] to [add_filter (‘the_content’, ‘commentscode’ , 100);] , it will show Facebook comments box below the JetPack Sharing buttons.
Let us know if you need any more help and please provide your valuable feedback with suitable ratings to plugin.
Thanks & Regards
Team Vivacity
Thanks.
Can this hook priority be done via a child theme’s function.php file? If so, what would that look like?
Or does it have to be edited in the plugin itself?
The client decided not to use Facebook comments for this project now, but I’ll keep it in mind for upcoming ones.
Thanks,
Michael
Hello Michael,
Greetings!
Priority of this hook can also be done via child theme’s function.php file. Use following code into your function.php file for set priority of hook:
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if ( is_plugin_active( 'facebook-comment-by-vivacity/fb-comments.php' ) ) {
function remove_actions() {
remove_filter('the_content', 'commentscode');
}
add_filter('init','remove_actions' , 10);
add_filter ('the_content', 'commentscode',100);
}
Thanks & Regards
Team Vivacity
Hello Michael,
Greetings!
Your Welcome. Please provide your valuable comments & feedbacks to plugin.
Thanks & Regards
Team Vivacity
Great plugin!
How to insert ‘Facebook Comments by Vivacity’ commentbox below the ‘author box’ just above the ‘wordpress comments’ ?
appreciate your time.
Margje
Hi Margje,
We have used hook[add_filter (‘the_content’, ‘commentscode’, 100);] for Facebook comment box so It is showing inside the loop by default. If you want to change position please do un-check check box and add short-code where you want to show FB comment box.
For example: Change position on posts detail pages.
1. Uncheck “Posts” checkbox on plugin settings page.
2. Insert shortcode into single.php file where you want to show Facebook comment box like this <?php echo do_shortcode('[vivafbcomment]'); ?>
Let us know if you need any more help.
Thanks & Regards
Team Vivacity
Clear, thanks for your reply!
Margje
Hi Vivacity, I’ve tried this, but still your plugin seems to be on top of the Pages button. Can you please tell me how to fix this. I also want it below the Author.