Add a Pinterest “Pin It” Button to All of Your Posts

 


Pin It

If you have a blog, you probably have social media buttons attached to your post so that your readers can “Like,” “Retweet,” “Digg,” etc your posts.  If you’re a photographer, though, you’ve probably also found yourself wishing that you could add a Pinterest “Pin it” button to your blog.

There are a couple of great options on the Pinterest Goodies page including

1) “Follow me on Pinterest” button This is a basic button that links to your Pinterest pinboards.  To set it up, just log in to your Pinterest account, then click on the button on the Pinterest Goodies page to autogenerate your custom code).

2) Image/Product Specific Pin button This one is great for those selling products, posting single images infrequently, or if you want to just make one especially notable images available for pinning here and there.  To auto-generate your custom image-specific code, go to the Pinterest Goodies page and provide your website URL, selected image URL, and a description of the image (if you want to pre-populate that field for the pinner). We used this for the image above.

… but what if you want a universal Pin It code for all of your posts?

One request that we have heard made regularly from our photographer colleagues is a way to add a “Pin It” button similar to the “Like” or “Retweet” buttons that will appear in every blog post — without having to generate new image-specific code every time. When we set up our new CMpro Daily Project, we realized that it was time to figure it out — and we want to share that code with you. Simply copy and paste the code (in orange) below in one of several places:

        1. In the HTML at the end of every blog post (right in the body of the post in HTML View)
        2. Inside the loop of your post template file (typically single.php, single-post.php, single-photo.php, or something similar)
        3. Using an action hook — depending on how much of a geek you are, this may be a bit much, but many WordPress themes come with features that make the addition of hooks a simple cut-and-paste.

 

* Want to use a different Pinterest image or prefer to design your own button graphic? Just replace “http://www.clickinmoms.com/cmprodaily/wp-content/uploads/2011/09/pinit.jpg” with the URL of your own image.

We’ll see you — and your images!! — over on Pinterest!

Have you found or developed something that worked better? Tweaked the code to make it even more awesome? Tell us about it! And if you liked this article, be sure to Like it, Retweet it, and – of course! – pin the banner below!


Pin It

Tags: ,

70 Responses to “Add a Pinterest “Pin It” Button to All of Your Posts”

  1. February 14, 2012 at 2:58 pm #

    Hi, and thank you for this how-to!

    Question… will changing “aligncenter” to “alignleft” do what I hope it will do? :)

    Thanks!

  2. February 15, 2012 at 11:45 am #

    Worked like a charm! I used Option 1: paste into html view of each post. I inserted the code after each photo’s code so the pin it button appears directly under each photo. Thank you so much–yours is the easiest tutorial for this I’ve seen!

  3. February 21, 2012 at 10:24 pm #

    Thank you for your tutorial! I’m just not very tech savey and I’m wondering if you have an option that will make the button appear at the end of each post without me having to enter it every time? Thanks so much for your help!

    Emily

  4. February 25, 2012 at 7:34 pm #

    The tutorial I would like to find (again) is the one that ‘fixes’ all your pictures automatically so when you run your cursor over it, the frame around your picture appears and you have ‘pin it’ or others can ‘pin it’ at any time. I remember reading these instructions, but guess I didn’t save them,,,,,,,,, can’t find them. Help please??? Thanks, Carol cinez123@aol.com

  5. February 25, 2012 at 7:35 pm #

    The tutorial I would like to find (again) is the one that ‘fixes’ all your pictures automatically so when you run your cursor over it, the frame around your picture appears and you have ‘pin it’ or others can ‘pin it’ at any time. I remember reading these instructions, but guess I didn’t save them,,,,,,,,, can’t find them. Help please??? Thanks, Carol cinez123@aol.com

  6. February 28, 2012 at 5:55 am #

    Thank you for sharing, i will check here more often .

  7. March 21, 2012 at 2:13 am #

    Getting followers pretty much always equates to credibility. I feel like in current times that many celebrities are judged by how many follower they have. It’s kind of wrong, but true. Whether it be pinterest, twitter, or anything really.

    I manage social media for a small business and I found a pretty unique website that “sells” followers. There are many websites that do this (surprisingly!) but this particular one has targeted followers too: http://www.mysocialanswer.com

    PS- Just don’t tell your boss you bought the followers :)

  8. Matt
    March 22, 2012 at 2:21 am #

    Awesome! I used this on my drupal site. Hardcoded for the moment, but hopefully it gets made into a module or incorporated into another.

  9. March 28, 2012 at 4:29 pm #

    Thanks so much for this information. My old buttons stopped working and I had tried everything to get around the individual pin button. This was just what I needed.

  10. March 28, 2012 at 4:30 pm #

    Should add, I used mine in a hook, just replacing my styled div tag with the generic one.

  11. April 18, 2012 at 8:58 am #

    Thanks so much. I’ve added this to my blogger account and I was wondering how you got the “Count” function to appear. I’ve been trying to find a way to get a count of my photo pins and re-pins on Pintreset and am not finding what I want. I know I can “Source” from my blog, but I want a count of each photo posted. I know you can, I just don’t know how.
    Thanks so much.

  12. May 6, 2012 at 6:11 pm #

    oh my gosh, this is awesome, I was referred from seven thirty three. I’ve been wanting to add a pin it button to my posts but did not want to edit my template because I’m a sissy and have never done that. This was so easy. thanks, Kathy p,s, what are trackbacks, pingbacks. You can tell I know nothing!

Trackbacks/Pingbacks

  1. Pinterest | latest greatest thing | Allison Jacobs Photography - October 16, 2011

    [...] are some buttons you can use on the Pinterest website here and you can also read an article on the Clickinmoms blog about that [...]

  2. Se7en + 1 Super Quick Toddler Projects from Pinterest… » se7en - October 29, 2011

    [...] I found this really cool button over on ClickinMoms.. If you like it – Pin it!!! So if you see something on our blog that you like please feel free to pin it to your board… gotta [...]

  3. Se7en Ways To Help Pinterest Drive Traffic Towards Your Blog… » se7en - November 4, 2011

    [...] Help People To Pin Your Posts: Make your blog “Pin Friendly”… I have been lucky so far in that folks do pin our crafts when they see them… But you can do more to encourage readers to pin your posts. I have seen folk that have “Pin this” button alongside every single photograph – and I just want to say overkill!!! It is not a subtle invitation but rather a bit of a turn-off. I have found folk who pop a “Pin-it” button next to the photograph in a post that they like the best and that they would like folk to pin for that post. For myself, my project for this weekend is to put up a button – “If you Love it, Pin It” in our side-bar, just a gentle reminder to readers – it isn’t in their face and they don’t have to act on it… but it is there in case they see something on our site that they like. I found this really cool button over on ClickinMoms.. If you like it – Pin it!!! [...]

  4. Haber Photography - Orange Beach Photography Gulf Shores Photography - November 30, 2011

    [...] to Pinterest. So over on the Clikin Mom’s blog there’s a tutorial to teach you how to add a “Pin it” button to your blog posts. [...]

  5. Blogging 101: 10 Wordpress Plugins You Should Have on Your Blog | Confessions Of A Vi3tbabe - January 8, 2012

    [...] prefer) of your post. Nice & simple! Oh, and if you love Pinterest, I’d suggest adding a “Pin It” button to all your blog posts. I love [...]

  6. Social Networks You Need To Be On | Confessions Of A Vi3tbabe - January 31, 2012

    [...] even have a cool browser add-on so you can easily pin anything you see on the web. There’s also a way to add a “Pin It” button to your blog, which I highly suggest you do as I said, it does wonders for your blog traffic. In case you’re [...]

  7. Pinterest Weekend Update - Feb11 | @SchneiderB – Inbound marketing, technology, branding, and social media for schools - February 11, 2012

    [...] Post: Add a pinterest “pin it” button to all of your posts - If you have a blog, you probably have social media buttons attached to your post so that your [...]

Leave a Reply

Optionally add an image (JPEG only)

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin