X

Add pinterest “Pin It” button to your wordpress blog

Meta Slider Review - coin random

Adding a pinterest button to a wordress blog is simple! Place the first snippet in the functions.php of your wordpress theme. Once that is done add the next snippet into the location you wish to display the Pint It button within the single.php template file.


function pin_js(){
   echo '<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>';
}
add_action('wp_footer','pin_js');
<a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&description=<?php the_title_attribute(); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a>

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!