• Resolved iangeek

    (@iangeek)


    This may be something that changed a while ago and I just never noticed, but didn’t the native FB button the Sharedaddy code pulled in used to be the button_count “Like” variant, rather than “Share”? i.e this rather than this?

    Or am I going mad, and its always been “Share”?

    Either way, would be good to have the option when using native buttons, as there’s a fundamental difference of intent between the two.

    https://www.ads-software.com/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    You’re not mad ?? We did indeed change that button a few months back. We replaced the Facebook Like Button by the official Facebook Share button, to match the behaviour of the other sharing buttons and share your posts instead of just Liking them.

    If you’d like to use the Like button again, you can paste this code in your theme’s functions.php file, or in a functionality plugin:

    function jeherve_custom_fb_button( $fb_share_html, $share_url ) {
            $custom_fb_button = '<div class="fb-like" data-href="' . $share_url . '" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>';
            return $custom_fb_button;
    }
    add_filter( 'jetpack_sharing_facebook_official_button_output', 'jeherve_custom_fb_button', 2 );

    Feel free to change the different attributes to fit your needs!

    Thread Starter iangeek

    (@iangeek)

    Thank goodness I hadn’t imagined it!

    OK, great – will try that filter. Good to know everything’s extensible ??

    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sharedaddy FB "Like" vs "Share"’ is closed to new replies.