insert pin-it button for blog sharing

Posted in: Newspaper
Post count: 23

Hi,

How to insert ‘pin-it button’ for blog sharing appropriately? http://screencast.com/t/i6oyqMoo2Pi

Thank you, Liesbeth

Post count: 9544

I then you can uncomment the pinterest button in the templates… do a quick search in forum for that. Might be the functions.php file.

Post count: 6600

Hi,

Add this code:

$image = wp_get_attachment_image_src( get_post_thumbnail_id( $this->post->ID ), 'single-post-thumbnail' );

                $buffy .= '<li class="td-social-pinterest">';
                    $buffy .= '<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script><a href="http://pinterest.com/pin/create/button/?url=' . $this->href . '&media=' . (!empty($image[0]) ? $image[0] : '') . '" class="pin-it-button" ><img border="0" src="http://assets.pinterest.com/images/PinExt.png" title="Pin It" alt="" /></a>';
                $buffy .= '</li>';

to td_module_blog.php file like this: http://screencast.com/t/Iry8xWEQ

Result: http://screencast.com/t/Ek7jSFsa

Thanks

Post count: 23

Thank you! It works fine. 🙂

Liesbeth

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.