• Resolved mpmchugh

    (@mpmchugh)


    Oddly Facebook Comments using your plugin show up above the JetPack Sharing buttons, rather than below.

    The WordPress comments show up below. I’d expect the Facebook Comments to do the same.

    Is there a way to correct this?

    With a lot of comments the sharing button would be very far down the page. Ideally they’d be right after the content, before the Facebook Comments.

    Thanks,
    Michael

    https://wordpress.org/plugins/facebook-comment-by-vivacity/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Team Startbit

    (@vivacityinfotechjaipur)

    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

    Thread Starter mpmchugh

    (@mpmchugh)

    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

    Plugin Author Team Startbit

    (@vivacityinfotechjaipur)

    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

    Thread Starter mpmchugh

    (@mpmchugh)

    Great. Thanks!

    Plugin Author Team Startbit

    (@vivacityinfotechjaipur)

    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

    Plugin Author Team Startbit

    (@vivacityinfotechjaipur)

    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

    trann123

    (@trann123)

    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Facebook Comments showing above JetPack Sharing buttons’ is closed to new replies.