If this is in the wrong forum, please tell me which forum I should put this.
Thank you.
You shouldn’t need anything special to use the code for the button. Where did you get the code from the PayPal site – from your user page where it has options to generate button code for you?
Yes, and when it didn’t work, I called PayPay and gave the tech the code and he said it was correct and that WordPress requires some kind of widget for it to work.
Hmmm, I’ve put that kind of code in a regular page without problems, but it’s certainly easy to put it in a widget. Just go to Appearance > Widgets and put a text widget in a sidebar location. Then add your code.
Oh one other thing – when you added it before, did you use the text editor and not switch to visual (that can corrupt code).
I almost always work in text. I put it in while in the text editor.
That’s good – just wanted to rule that one out. But I did compare the code on your page to some I used recently to test a PP button and mine is a bit longer – here’s yours and then mine:
<form target="_top" method="post" action="https://www.paypal.com/cgi-bin/webscr">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!">
<br>
<img width="1" height="1" border="0" alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8M42NVXXXX2ZG">
<input type="image" src="https://www.paypalobjects.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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
EDIT – I did change the code in mine – in the value field just to remove identifying info since it’s not a live site yet.
Verrrry interesting. I went back and retrieved the code and put it in again. It worked. Then I remembered your comment about using the text editor. There was a big space between the text and the button. Rather than going and changing the CSS, I had been lazy and just did backspace backspace in visual to pretty it up. I copied my original button code on to a word doc and the repeated the backspace backspace and compared the code to the original. The code for the button had been scrambled. Teach me to be lazy!
Thank you for your help. All is well now.
LOL – well, in any case, I’m glad it was a pretty simple fix. BTW, be careful about using Word for code – as it will cause problems too sometimes. Better to use a text editor.
I was just using word to hold the code. I don’t use it as a text editor. But thanks.