• Resolved johnnyRing

    (@johnnyring)


    Hi guys,
    I’ve installed jetpack plugin and I’ve inserted social sharing buttons in my website footer adding this code `<?php
    if ( function_exists( ‘sharing_display’ ) ) {
    sharing_display( ”, true );
    }

    if ( class_exists( ‘Jetpack_Likes’ ) ) {
    $custom_likes = new Jetpack_Likes;
    echo $custom_likes->post_likes( ” );
    }
    ?>`
    It works fine overall except in homepage, where when I push social button the new open tab is a bit of website mobile version in mozilla firefox and the whole website mobile version in opera and chrome.
    I’ve debugged it at https://developers.facebook.com/tools/debug/og/object/ and all seems fine.

    Can you help me, please?
    Thanks a lot
    j.r.

    https://wordpress.org/plugins/jetpack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter johnnyRing

    (@johnnyring)

    Sorry, I forgot to wrtie my url site, that is http://b5srl.eu

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Jetpack’s sharing buttons are built to share posts and pages. You won’t be able to use them to share a link to a home page, or to an archive page.

    The buttons consequently won’t work on your home page; as you can see when moving your mouse over the buttons, they link to one of your posts (the first in the loop):
    http://i.wpne.ws/XsUQ

    Thread Starter johnnyRing

    (@johnnyring)

    Thanks for your answer, but the weird thing is that the sharing window shows not a post like your screenshot would suggest, but the mobile theme version. Please, is it possbile to fix it somehow, so that button would share “palestra coimunale di san tammaro” directly? screenshot
    thanks a lot

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Could you make sure you do not have any extra redirect rules that may remove query strings from the URL on the home page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘social sharing button don't work in homepage’ is closed to new replies.