Wrong counts on buttons after excerpt
-
We were displaying share buttons below the excerpt on the landing page as well as above and below the post on the post pages. Buttons are displayed by copying the javascript to the header and placing the html <div class=”sharethis-inline-share-buttons”></div> where the buttons are to be displayed.
On the landing page the Facebook share count for each post listed is 49. On the post page itself the Facebook share count was correct.
To avoid confusing visitors, the buttons have been removed from the landing page pending a resolution.
-
This topic was modified 8 years, 9 months ago by
edrubins.
The page I need help with: [log in to see the link]
-
This topic was modified 8 years, 9 months ago by
-
Hi @edrubins,
Thank you for reaching out and apologies if you’re seeing an issue on your end.
When it comes to using our plugin, you shouldn’t have to copy and paste any portion of our code within WordPress, I believe this is where the issue is coming from. Can you confirm that you’re using our latest version of the ShareThis plugin, specifically: https://wordpress.org/plugins/sharethis-share-buttons/There’s a section within our plugin that automatically allows you to include your inline share buttons within the excerpts section: https://cl.ly/mOUy
By enabling this option our plugin should properly pull the correct share counts. If you’re still having this issue please let us know!
Thank you for your quick response. At the current time I am not using the plugin. There seems to a problem using it under our custom theme. Plus the “copy and paste” method gives me finer control over where the buttons are placed.
Best, Ed
Hi @edrubins,
No problem at all! So we normally recommend using the plugin because it automatically pulls the data-url which is connected to share counts. When adding multiple buttons without the plugin, it takes a bit more hand holding because you have to manually insert a specific page URL on each
<div class=”sharethis-inline-share-buttons”></div>that you include on the landing page.We have a documented article here on how to add multiple share buttons on a page: http://www.sharethis.com/support/customization/customize-sticky-share-button-urls/
Ultimately if you use
<div class='sharethis-inline-share-buttons' data-url='[CUSTOM URL HERE]'></div>and point them to correct URL, this should solve the share count issue!Feel free to let me know if you have any other questions Ed!
Brandon
Thanks Brandon. Hopefully that will solve the problem. Once I get that working I’ll try and figure out why the plugin and theme aren’t playing nice.
Again. thanks for the quick responses.
Best, Ed
Hi Brandon.
The problem I’m seeing with the new plugin is that landing page displays the entire post content as the excerpt. I traced the problem down to the plugin. The set_inline_excerpt method of the Minute_Control class returns $content (undefined) instead of $excerpt. Making the change on my staging server fixed the problem. Since this a different domain than the live site, there are no share counts to display, so I can’t verify that.
I’m planning on making the change on the live server either on Sunday or Monday, depending on site traffic and my schedule.
Have a great weekend,
EdShare counts are now showing on both the landing and post pages with the plugin. However another issue has shown up. The inline buttons on post pages, mostly at the bottom, are sometimes being forced to two lines due to the width of a displayed ad.
See the image at https://www.dropbox.com/s/w12pq63tlgt6bay/share-buttons.png?dl=0.
Hi @edrubins,
Glad to see you got the buttons working Ed!
It seems like the formatting of the share buttons going into another line is a responsiveness issue on our platform end, I’ll have our developer team take a look at it. In the mean time you can modify the styling by jumping into a CSS file and adding some styling. If you’re interested we can definitely supply you the code if you can get us a link to that page with the two line issue!Let us know Ed 🙂
BrandonHi Brandon
Adding
.sharethis-inline-share-buttons {
clear: both;
}to the css file fixed the two line problem. But I’m continuing to have problems with the plugin.
All of a sudden the configured buttons were replaced by the default buttons (FB, Twitter, Pinterest, Email and Share and for some strange reason the custom css I use to size them isn’t having any effect.
It may have something to do with the fact that there are three properties associated with the account and two of them have the same name. The properties are: march-against-monsanto.com (the live site) and mam.geekcandy.org (the test site and the one that’s duplicated.) All are configured exactly the same. There doesn’t seem to be any way to remove the duplicate named property.
If I can’t resolve this issue I’ll need to deactivate the plugin and go back to adding the div’s where needed.
Ed
Hi Brandon
Support got back to me this morning with instructions on removing a property. Removing the property, and resetting the property id’s in the plugin on the various site seems to have cleared most, if not all, of the erratic problems. I’ll give it a couple of hours for CDN to catch up with the live site to make sure all is well.
Thanks for everything,
EdHi @edrubins,
The buttons look amazing and we’re glad you were able to get them working properly! If you have any other questions or ideas on how we can further improve our product feel free to let us know in this forum or via email at support@sharethis.com.
If you had a positive experience with ShareThis and have a few minutes to leave a review, please feel free to do so here: https://wordpress.org/support/plugin/sharethis-share-buttons/reviews/
All feedback and thoughts help to further improve our product!
Thanks again Ed 🙂
ShareThis Support
This issue has been resolved. If you have more questions please start a new support ticket. Thanks again!
ShareThis Support
The topic ‘Wrong counts on buttons after excerpt’ is closed to new replies.