WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Pinterest Button Pin Count Missing (10 posts)

  1. thezenofmaking
    Member
    Posted 3 months ago #

    The share count suddenly disappeared from the Pinterest sharing button a few days ago, and I'm trying to determine if it's a Jetpack issue, a Pinterest issue, or some sort of CSS error/issue with another plugin on my site. After spending a couple of hours trying CSS fixes and turning off other plugins, I haven't been able to get the count to show up again.

    I've removed the CSS changes that I tried, so my setup is currently the same as it was when the problem started. Any help would be much appreciated.

    My site: http://www.thezenofmaking.com/

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

  2. Brandon Kraft
    Happiness Engineer
    Plugin Author

    Posted 3 months ago #

    Howdy,

    To confirm, you're referring to the Pin It button that's at the bottom of your posts inline with the Facebook and Twitter elements, right?

    You're using the "official" buttons, which pull data directly from that particular social network and looks like something is misfiring within their code between getting the count (which is happening) and processing it to display on the site.

    I'm working on seeing if I can duplicate this. While I think it is an issue on Pinterest's end, I'd like to confirm that before stating it definitively :-)

  3. thezenofmaking
    Member
    Posted 3 months ago #

    Thanks for getting back to me!

    Yes, I'm referring to the Pin It button that's part of Jetpack sharing that is displayed inline with the other social sharing buttons at the bottom of my posts.

    Out of curiosity, I just tried installing Pinterest "Pin It" Button Lite (the Pinterest plugin I used before Jetpack added Pinterest to sharing). For what it's worth, the pin count does work correctly with that plugin, so it seems like Pinterest is indeed currently supplying accurate pin count information. (I've deactivated this plugin again to avoid any confusion.) Alas, I'm not sure if this information will help clarify the mystery, or just add to it.

    Thanks again for your help!

  4. Brandon Kraft
    Happiness Engineer
    Plugin Author

    Posted 3 months ago #

    Howdy again,

    Looking in more detail, the Pinterest button we're using is the one for any image on the page, allowing the visitor to choose. It looks like the other plugin is merging that type with the type that displays count (based on shares of a specific image on the page, not all of the Pinterest shares from that page in sum) .

    I'm still looking and seeing if there's a way to pull this data from Pinterest while respecting that visitors may share various images. Would rather have accurate data or no data, versus displaying something that may be inaccurate.

    It's possible that I'm misreading what the other plugin is doing, so I'm open to being corrected (if someone from the other plugin drops in :-) ).

    Cheers!

  5. Bubbajuju
    Member
    Posted 2 months ago #

    Same problem here. Used to work fine before the Jetpack last update...

  6. thetasteofaussie
    Member
    Posted 2 months ago #

    I fixed it on mine as follows

    Open sharing-sources.php
    Go to line 1158

    You then add data-pin-config="beside" after data-pin-do="buttonBookmark"

    Result should be :

    return '<div class="pinterest_button">get_share_url( $post->ID ) ) . '&description=' . rawurlencode( $post->post_title ) ) .'" data-pin-do="buttonBookmark" data-pin-config="beside" ><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></div>';

    Voila, you now have the pin count.

  7. thezenofmaking
    Member
    Posted 2 months ago #

    Thanks, thetasteofaussie--the fix worked perfectly!

  8. Bubbajuju
    Member
    Posted 2 months ago #

    Ditto. Thanks thetasteofaussie!

  9. Brandon Kraft
    Happiness Engineer
    Plugin Author

    Posted 2 months ago #

    Thanks for sharing that and my apologies for letting this sit for so long. We'll get this added into the next version of Jetpack.

    Cheers.

  10. prayersnapples
    Member
    Posted 2 months ago #

    I just tried that fix but it didn't work - am I typing something wrong?

    return '<div class="pinterest_button"><a href="' . esc_url( 'http://pinterest.com/pin/create/button/?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&description=' . rawurlencode( $post->post_title ) ) .'" data-pin-do="buttonBookmark"data-pin-config="beside" ><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a></div>';
    		else
    			return $this->get_link( get_permalink( $post->ID ), _x( 'Pinterest', 'share to', 'jetpack' ), __( 'Click to share on Pinterest', 'jetpack' ), 'share=pinterest' );

    Any help would be greatly appreciated! Thank you! My site is: http://www.prayersandapples.com/blog

Reply

You must log in to post.

About this Plugin

About this Topic