How to add a Pinterest pin it button to all of your posts tutorial


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 “” 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!

Sarah WilkersonSarah Wilkerson, New York
CEO | Click Photo School Instructor
website | facebook | twitter | pinterest | instagram
Duke graduate and former attorney Sarah Wilkerson joined Clickin Moms as a member photographer in 2008 and quickly became a leader in the community. Together with Kendra, Sarah has led the evolution of the company’s mission, program development, and position within the greater photography community. She currently resides in New York with her Army JAG husband, three sons, one daughter, and two dogs. Sarah shoots with a Nikon D4, enjoys tilt-shift and atmospheric black and white work, and instructs CPS’s upper level composition courses: Elements of Design and Composition and Creativity.

Read all photography tutorials by Sarah Wilkerson.


  • Kristina says:

    Thank you so much for sharing this info it really saved me a lot of time. I'm going to share this and link back to your website!

  • Christy says:

    I went through like three different blogs that tracked me back to you and this! lol Thanks so much for sharring how to do it. Easy Peasy! 😉

  • LOL, got this from Pintrest. Thanks!!! :)

  • Maryellen Schuelke says:

    I actually desired to compose a small note to thank for you for some of the pleasant secrets you happen to be showing on this webpage.

  • Sarah says:

    Hi, and thank you for this how-to!

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


  • SAHMmy Says says:

    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!

  • Скейтборди says:

    Лучший скейт-портал в Украине и странах СНГ !

  • Emily Meyers says:

    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!


  • Carol Lindberg says:

    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

  • Carol Lindberg says:

    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

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

  • Kermit Hassanein says:

    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:

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

  • Matt says:

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

  • 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.

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

  • Karyn says:

    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.

  • 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!

  • liana says:

    this WORKS!!!!!! Thanks so much for sharing. I have spent most of my sunday morning trying to figure out how to get all of my pics to show up with a pin it button in my blog margin. this works and now my readers can pin from all of my uploaded images vs. just the one in the post!

  • teen says:

    hi good post man, i think u have put your point across excellently thanx

  • meegan says:

    Just read this, and tried it out on my blog-works perfectly!! Thanks SO much!!
    What Meegan Makes

  • Really? Exactly what could these people be imagining? This is unbelievable!

  • Deadra Brendal says:

    Someone necessarily assist to make significantly articles I might state. That is the very first time I frequented your website page and to this point? I surprised with the research you made to make this actual submit incredible. Fantastic activity!

  • Autumn Jones says:

    Yes! Thank you so much! The html code pinterest generated for me wasn't picking up any of my photos and it was very frustrating–you fixed my problem! Thanks so much!

  • Rohit Roy says:

    Awesome tips Thanks For Sharing
    i love it….:D

  • Aw, this was an incredibly good post. Taking the time and actual effort to create a very good article… but what can I say… I procrastinate a lot and don’t manage to get anything done.

  • Natalie says:

    Thank you, thank you, thank you!!!!
    You saved me a bunch of time. I was trying to follow PInterest’s goodie tutorial but I could not figure it out!!! I finally just googled it and your blog came up!!!

  • aimee says:

    Thank you for this! You’ve made it so EASY! I could kiss you :)

  • Jassmine says:

    how it appear on the center or bottom image, not on out side image with big pinterest button? thanks for advice

  • janet says:

    where is the orange code?
    i do not see it

  • says:

    I really like it when individuals come together and share thoughts.
    Great blog, keep it up!

  • PrNewsNet says:

    works very well. thanks for that supporting

  • Yee Coven says:

    Hello my good friend! I want to say that this put up is remarkable, great penned and involve roughly all important infos. I would like to determine much more posts like this .

  • Thank you. I love you. Will you marry me?

  • What i do not realize is actually how you are not really much more well-liked than you might be now. You are very intelligent. You realize therefore significantly relating to this subject, made me personally consider it from so many varied angles. Its like men and women aren’t fascinated unless it’s one thing to do with Lady gaga! Your own stuffs outstanding. Always maintain it up!

  • I cherished as significantly as you will collect carried out right here. The sketch is enticing, your authored topic issue stylish. nonetheless, you command get purchased an impatience around that you would like be delivering the next. unwell unquestionably come extra formerly all over again considering that exactly the exact same nearly a lot generally inside event you shield this hike.

  • Katie says:

    I added this code a while back, and I’d love to remove it and install the hovering Pin It button instead, but I can’t for the life of me figure out where the code is to delete it! Do you have any suggestions? Thank you SO much!

  • Thank you so much! I had no idea how to do that and you made it so easy!

  • Arden says:

    I am really grateful to the holder of this web site who has shared
    this enormous post at here.

    forex rebates usa (Arden)

  • Franziska says:

    Hmm is anyone else having problems with the pictures on this blog loading?
    I’m trying to determine if its a problem on my end or if it’s the blog.
    Any feedback would be greatly appreciated.

    Feel free to visit my homepage … seo rankings (Franziska)

    • Hi Franziska! Double check that you aren’t accessing a secure (HTTPS) version of the URL; we’re having some issues with images for those trying to access the HTTPS version of the page. :)

  • I will immediately clutch your rss feed as I can not to find your email subscription link or newsletter service.
    Do you’ve any? Kindly permit me recognize so that I
    could subscribe. Thanks.

    Also visit my homepage: get free instagram followers now

  • Cam B says:


    I was wondering where the pin it html is on this page? I can’t find it- maybe i’m just not looking hard enough…

  • The end concerning putting special times to complete a number of chores during hence helpful.

    During the past I’ve got normally delegated point in time
    slot machine games to particular projects. Many people for no reason exercised ceasing while in the activity to not get done.
    Therefore afre the wedding of the things That i appeared with plenty of about half accomplished projects.
    Using a short time even going to full a fabulous plan seems alot more rational
    number on one occasion In my opinion regarding it. I’m sure exactly at all
    times fast to put together important things done.

Leave a Reply

Your email address will not be published. Required fields are marked *

Optionally add an image (JPEG only)