How to Customize the Pinterest Button on Your Blog Post Images
On Monday I explained how to add an “Pin This” button to your blog post images. In today’s post, I’ll walk you through three easy steps for how to customize the Pinterest button on your blog post images.

The single most important step in the process is to find a nice button in the proper dimensions. Here’s my take: some people like big ‘ol buttons when you hover over the photo, but I prefer a subtler approach — about a 50×50 pixel image. I like square images because I think they are prettier
Two quick things to keep in mind:
- Make sure the image is a .png or .gif. You need an image with a transparent background so that you don’t have a fugly white border around the button on hover.
- For the love of all that is design holy, if you find an image you like and need to resize it, make sure to resize it proportional. Do not start stretching an image all wicky whack.
Once you have an image selected and sized, go ahead and upload it to your media library.

After you upload the photo, copy its URL. Then, select Plugins > Editor. At this point, you might be like “Holy cow, that’s code on the screen” and start to panic, but trust me it’s easy peasy to change this image.
In the top right you have the option to “Select Plugin to Edit.” Choose Pinterest PinIt Button for Images. Next, in the right hand column of files, choose the one ends in “ppibfi_pinterest.css.” The CSS file is what controls the look and style of your button.

The CSS that you need to change is toward the top of this file. You only need to change two things and both in this block of CSS:
.pibfi_pinterest .xc_pin {
width: 80px; height: 50px; /* Please note that the button is 80px x 50px. If you use a different size button, change this */
background-image: url('http://orginalbuttonurl.com/button.png'); background-repeat: none; /* This is the buttons image. Image can be found in the plugin folder */
position: absolute;
top: 5px;
margin-left: -1px;
opacity: 0;
cursor: pointer;
display: none;
}
You only care about two lines of that code. The first line is in regard to the width and height of the image you’re using. You need to change these numbers to the dimensions of the button you are using. For example, if you use a small square 50px image like me, your CSS should read:
width: 50px; height: 50px;
Next, you need to change the background image. This is where you tell the plug-in the image to use for the button. Remember that URL you copied in step #2? You want to paste it here. It should look something like this:
background-image: url('http://yourwebsite.com/wp-content/uploads/pin.png'); background-repeat: none;
Now, click “UPDATE FILE” to save your changes. And, you’re done!
 |
Are you a solopreneur or small business owner looking for strategic insight on how to DIY your company’s website?
Check out Kate’s Tech Talks, our weekly video series dedicated to helping the website DIYer figure out how to make a smart, savvy and strategic site for their business. |
Want to know a really good tip? When you initially open the CSS file, copy and paste ALL the text in a simple TextEdit document. Why? That way if you goof up somehow and something doesn’t work right you can just paste in the good stuff and try again.
P.S. In case you’re wondering, I haven’t customized the button for this blog, but I have on my lifestyle blog.