I want to add a custom Paypal button to my blog pages and posts that says "Contribute to Support My Work". That takes 3 things, code from paypal, modification of their image/button, and insertion into each of my posts/pages.
I would like a custom button the shape of the US map with some red, white, and blue waves in it. Pay Pal has the nice button that also has images of the various cards that can be processed during the contribution. I would like those images in mine also.
I do not want to use the word donate because this is not a non-profit and I do not want to mislead people.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="Z8DA36GP7SEQA">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Nathan Parikh answers:
For a custom image, all you have to do is make a change in this line:
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
Change https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif
to the URL of your custom image
To insert into every post/page, copy the button code and paste it wherever you want into the single.php and page.php files of your theme.
Dan Fraticiu answers:
Have a look at this plugin: <a href="http://wordpress.org/extend/plugins/wordpress-paypal-donation/">WordPress PayPal Donation</a>
You can manualy insert in into every post, via the [donate] shortcode or you can put something like this in your single.php and/or page.php
do_shortcode('[donate]');