Announcing Kindle Sharing Support

Amazon Kindle LogoWe’re happy to announce the addition of Send to Kindle support to our Sharing toolbox – now, VIP customers can offer site visitors a Send to Kindle sharing option on site content. The popularity and convenience of Amazon Kindle provides a great fit for consuming WordPress content – users can send any article to their Kindle device(s) for later consumption, both on and offline, at their convenience!

To add Kindle support, simply drag the Kindle button to the enabled Sharing services under Settings -> Sharing; it’s really that simple!

If your theme is using non-standard class names for content wrappers, you’ll need to tell Kindle how to find your content via the jetpack_sharing_kindle_selectors filter. This filter accepts an array of CSS selectors and the post’s ID and should return an array of CSS selectors for Kindle to use to scrape the content:

add_filter( 'jetpack_sharing_kindle_selectors', 'my_kindle_sharing_selectors_filter', 10, 2 );

function my_kindle_sharing_selectors_filter( $selectors, $post_id ) {
    $selectors['title']     = '.my-entry-title'; // The content's title
    $selectors['published'] = '.my-entry-date'; // The content's published date
    $selectors['content']   = '.my-post'; // The content body
    $selectors['exclude']   = '.sharedaddy, .my-excludes'; // CSS selectors to exclude from inside the content

    return $selectors;
}