WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Pinterest Button Pin Count Missing

[Resolved] Pinterest Button Pin Count Missing

  • thezenofmaking
    Member

    @thezenofmaking

    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/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Brandon Kraft
    Happiness Engineer

    @kraftbj

    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 🙂

    thezenofmaking
    Member

    @thezenofmaking

    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!

    Plugin Contributor Brandon Kraft
    Happiness Engineer

    @kraftbj

    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!

    Bubbajuju
    Member

    @bubbajuju

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

    thetasteofaussie
    Member

    @thetasteofaussie

    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.

    thezenofmaking
    Member

    @thezenofmaking

    Thanks, thetasteofaussie–the fix worked perfectly!

    Bubbajuju
    Member

    @bubbajuju

    Ditto. Thanks thetasteofaussie!

    Plugin Contributor Brandon Kraft
    Happiness Engineer

    @kraftbj

    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.

    prayersnapples
    Member

    @prayersnapples

    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

    Where do I find that Open sharing-sources.php?? I am looking around and can’t find it. I don’t know where I can edit this to fix it? Help!

    Bubbajuju
    Member

    @bubbajuju

    jetpack/modules/sharedaddy/sharing-sources.php

    I’m not so sure it is working anymore however…

    Plugin Contributor Brandon Kraft
    Happiness Engineer

    @kraftbj

    On the latest version of Jetpack, the sharing count is displayed when using the Official Buttons. There are no edits required.

    I just tried it on a test site and it’s working as expected for me.

    Bubbajuju
    Member

    @bubbajuju

    @brandon,
    Yep Jetpack 3.2 has fixed it for me.
    Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Resolved] Pinterest Button Pin Count Missing’ is closed to new replies.