PayPal Donations WordPress Widget
I just released a new version of PayPal Donations, version 1.2.
New in this version is the inclusion of a sidebar Widget for the PayPal button. I’m using the new WordPress 2.8 API for the Widget, so it’s only available if you run the plugin on WordPress 2.8 or newer.
In the widget admin you can specify a descriptive text as well as overrides for Purpose and Reference if you wish.
Enjoy and cheers!







PamJuly 3, 2009
Hi, I like you plugin and I am attempting to put a custom header img in the php. I’m not great with PHP to begin with, and I’m having trouble getting an image to show…any ideas?
// Get the settings
$title = ” ;
should it not go there?
( )JohanJuly 5, 2009
Hi,
If you want to edit the plugin php file to use an image for the title, locate the
function widget( $args, $instance ) { ...couple of lines of code... }It’s towards the end of the plugin file, around line 310. Within that function you’ll find two lines (around line 321, 322) which looks like this:
Delete both those lines and replace it with this single line:
and that should be it and the title is replaced with an image of your choice instead.
Another solution, if you don’t want to mess with the PHP code, is to just leave the title field empty in the widget settings in the dashboard. If the title field is empty, the plugin skips displaying that section on the website, and then in the widgets textfield in the dashboard you just start the textfield by writing
As the textfield in the plugin widget allows HTML it’s an easier solution, and also when you don’t edit the plugin’s PHP it will continue to work if you update the plugin in the future.
Hope this helps.
( )Cheers!
sergiFebruary 23, 2010
for some reason the paypal button doesn’t show up in the widget when viewing the site in safari. i had to use a “custom button” instead. have you experienced this?
i had this same problem when i wasn’t using your plugin, or wordpress for that matter. it turned out that there was a conflict between my google analytics code and my and the code generated by paypayl’s “button generator”. (and again, the problem was only in safari.)
( )StephenMarch 24, 2010
I though I posted a question but it seems to be missing – how can I increase the font size of the add on text in the Text filed?
( )thank you so much
Oh, this question is probably beyond the kind of support you would give for the widget but I made a Thank You page as you suggested and added it to the widget return field. is there a way so that this page does not appear in my “pages” list on the left sidebar?
JohanMarch 24, 2010
Hey Stephen,
If you need to change the font size for the text in the Widget, you need to add some styling for it in your CSS file. Adding something like this lets you set the size you need:
.widget_paypal_donations p { font-size:20px; }About pages, if you’re using the Pages Widget to display your pages in the sidebar, you’ll find an exclude field in the bottom of the options for the Pages Widget, where you can exclude your thank you page from showing.
Cheers,
( )Johan
StephenMarch 24, 2010
Thank you so much Johan for your quick response. I found the Exlcude line on the Pages widget – inserted the page ID and voila it worked fine.
On the other hand I inserted the code you sent for font size changing in the CSS file and changed the px to 30px – there was no change in the size of the type on the widget – if you look at my site yo will see the small orangish test between the white DONATE text and the Donate Button.
Any additional thoughts? Should I send you access to admin in a separate email?
Stephen
( )StephenMarch 25, 2010
Johan – now it is working (oh the mysteries of coding!)
thanks
( )Stephen’
JohanMarch 25, 2010
Stephen,
Nice to hear, I’m glad that you got it sorted out. :)
Cheers,
( )Johan
BruceMay 19, 2010
Thank you so much Johan for your quick response. I found the Exlcude line on the Pages widget – inserted the page ID and voila it worked fine.
On the other hand I inserted the code you sent for font size changing in the CSS file and changed the px to 30px – there was no change in the size of the type on the widget – if you look at my site yo will see the small orangish test between the white DONATE text and the Donate Button.
Any additional thoughts? Should I send you access to admin in a separate email?
Stephen
( )JohanMay 20, 2010
Stephen,
I took a look at your site (I think) and everything seemed to look correct or did I maybe have the wrong URL? If you send me the URL in question where I can take a look at it I’ll have another look.
Cheers,
( )Johan