• Hello

    I have a paypal button (Donate button for a non-profit org). I go to Paypal get the code, and paste it into my Wordpres site. I go to the “text” tab, not the “visual” tab to do this.

    It works fine at first, but it inserts a bunch of extra white space above and below the button. Nothing seems to work when I try to get rid of the space in the TEXT tab so I go to the visual tab and just hit back-space or delete on the unwanted blank line. it then looks fine… BUT WordPress changes the code in the button and then when people click on it they just go to the PayPal home page instead of the page that helps them make a donation.

    This is very annoying! I do not go into the code from Paypal at all. I just delete a blank line before or after the code (which starts and ends with a FORM tag).

    Can anyone explain why this is happening or help me prevent it from happening. I find that just toggling between TEXT and VISUAL often results in manipulation of the code. and “Text” is not just a plain text HTML editor (it actually recognizes a blank line, where as this is ignored in raw HTML code).

    Regardless, I need it to stop changing what is inside the paypal FORM tag every time I toggle or delete a blank line near it.

    Please help!?!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Does the code contain HTML code?

    You can try encoding it using this useful tool.

    Hope this helps.

    Thread Starter garybeck

    (@garybeck)

    yes the Paypal code that I paste in does contain HTML. why does that matter? why does WordPress have to “fix” code that I put in there. Is there a way to force it to leave code as it is and not mess with it. in this case it is destroying it.

    I checked out that tool. I don’t think that will help. it seems like it is just for converting HTML code to something that can be displayed on a web page. like it changes “<” to “<” so that the browser doesn’t process the < as code/command and it just displays it as the correct character in the browser.

    that’s not my problem here. My problem is that PayPal provides me with some HTML code. It just needs to be preserved and left unchanged. When it is processed by the browser as-is, it works perfectly. there are no problems with special characters or anything like that at all. It doesn’t need to be decoded. It just needs to be left alone. What is happening is that WordPress is actually changing the code in there, without my asking it to. Then the PayPal button no longer works. If it would be helpful, I will show you the PayPal code before and after WordPress destroys it.

    • This reply was modified 8 years, 5 months ago by garybeck.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress is destroying my PayPal links…!?!’ is closed to new replies.