Creating a simple jQuery plugin for Pinterest

Introduction

Goksel
goksel
5 min readMay 11, 2013

--

Plugins play a great part in the success of jQuery. There are hundreds of them out there, and having the ability to create your own is a great skill to have. With all of the interest in Pinterest (no pun intended), I thought it would be a good idea to do up a quick and simple Pinterest sharing plugin for jQuery.

Getting started

First we need to grab the jQuery plugin boilerplate

Custom image

pinterest-alt
  • url — the page we are sharing from
  • media — the image we want to share
  • description — the text we want to share with the image

--

--