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:

followed by Edit and add to your page where you want your button to appear.

Snippet Source/Credit: