Pinterest is really catching up with people’s interest with its cool new interface and innovative way of allowing people to share their stuff. I’ve been using it since a long time now and have got some small amount of follower as well (Me on Pinterest) and now I’ve started exploring it more. Here’s something I found when I was exploring it today. I’ll show you how to add a “Pin It” button to your wordpress without a plugin which will allow user to share your stuff directly to Pinterest.
Before that, I would ask you a small favor, don’t forget to add me on Pinterest! Fine, so here you go :
1. Login to Pinterest
2. Get your code
Once logged in, go to About > Pin it button or simply click here and get the button code as per your requirement by clicking Goodies button on left sidebar and look for “Pin It” Button for Websites.
3. Modify it!
You’re almost done. Instead of the url I’ve added above in the field, you can add the following codes listed below and it’ll work fine!
- For url field, add : <?php echo get_permalink(); ?>
- For Image field, add : <?php echo get_thumbnail(); ?>
- For Description field, add : <?php the_title(); ?> or leave it empty
4. Here’s your code
Congratulations, you’ve done it! Copy the code generated in the field there and paste it wherever you want to use the “Pin It” button on your WordPress.