If you were previously using Grow (Social Pug) for defining custom Pinterest images and descriptions, you can use the following code to use that data for the Pinterest share button in Shared Counts.
Author: Bill Erickson
Bill Erickson is a freelance WordPress developer and a contributor to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.
Use Social Warfare data for Pinterest images and descriptions
Shared Counts lets you specify a custom Pinterest image and description when using the Shared Counts – Pinterest Image addon. If you’re switching from Social Warfare to Shared Counts, you can retain your custom Pinterest images and descriptions you entered by telling Shared Counts to use a different meta key for storing/retrieving its data. We […]
WP Recipe Maker integration for Shared Counts
WP Recipe Maker is a popular plugin for creating recipe cards. It includes a feature to specify a Pinterest-specific image and description, just like the Shared Counts – Pinterest Image addon. The following code will let Shared Counts use the image and description you specify in WP Recipe Maker:
Let users select which Pinterest image to pin
Shared Counts is focused on privacy and performance. We don’t load any third party scripts because they could be used for tracking your site’s visitors and could slow down the speed of your site. When a visitor clicks the Pinterest button from Shared Counts, they are taken directly to Pinterest.com with the Pinterest image pre-selected. […]
Use title attribute for Pinterest description
When users pin a specific image in your post, Pinterest works through the following hierarchy to find the pin description. The first one it finds, it uses. data-pin-description attribute, which is a custom attribute specifically for the Pinterest description. You can manage this using a plugin like Tasty Pins. For more information, see our article […]
Tasty Pins integration for Shared Counts
Tasty Pins is a popular plugin for optimizing your content for Pinterest. It includes a feature to specify a Pinterest-specific image and description, just like the Shared Counts – Pinterest Image addon. The following code will let Shared Counts use the image and description you specify in Tasty Pins:
Use featured image description in Pinterest
When someone clicks your Pinterest sharing button, Shared Counts uses the current post’s featured image as the image, and the current post’s title as the description. Want a more descriptive description? The code below will use the featured image’s description if provided, and if empty it will fall back to the post title. Use the […]
Include Shared Counts styles when loaded via AJAX
Shared Counts only loads its styles if the share buttons are called in the current page. If you’re loading them via AJAX, they wouldn’t be in place on initial load. You can resolve this by telling Shared Counts the buttons are loading on the page. Add this to your theme’s functions.php file: This will load the styles […]
Setting up reCAPTCHA v2 – “I’m not a robot” checkbox
When you include the Email sharing button, Shared Counts will recommend you Enable Email reCAPTCHA. If you don’t enable reCAPTCHA, bots could use your email sharing form for spam which could make your site appear to be spammy in the eyes of Google and email clients. It can also slow down your server if bots […]
Creating new button styles
Shared Counts includes many style options built-in, but you can also create your own custom styles using the shared_counts_styles filter. The styles are added as a class on the .shared-counts-wrap container. If you’re using the “Fancy” style, it adds a class of .style-fancy which you can use to target CSS (example). The following code adds […]