Using the following lines of code, you will be able to add custom Pinterest button in your WordPress website. All you have to do is to add to your header above the body tag:
1 | <script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script> |
followed by Edit and add to your page where you want your button to appear.
1 | <div class="socialIcon-box"><a href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fyourdomain.com&media=<?php bloginfo(template_directory); ?>/images/youricon.png&description=Site%20Name%20and%20Description" class="pin-it-button" count-layout="horizontal"><img src="<?php bloginfo(template_directory); ?>/images/youricon.png" /></a></div> |
Snippet Source/Credit: flashalexander.com