• Resolved miniwi

    (@miniwi)


    Hi there,

    blog is using AMP in reader mode. The page has included a form from PayPal to include a donate button. I cannot see that AMP WP is transforming the form.
    Problem: img and form input is not working.

    Code the doesn’t work:

    <div>
      <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="xxxxxxxx" />
      <input type="image" src="https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donate_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Spenden mit dem PayPal-Button" />
      <img alt="" border="0" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1" />
      </form>
    </div>
    

    What is needed that a form is displayed in html and amp wp page?

    M:

    • This topic was modified 4 years, 9 months ago by miniwi.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Using an input element with an image type is not yet supported in AMP. See https://github.com/ampproject/amphtml/issues/26364

    So you can use a regular img instead. Try this:

    <div>
      <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="xxxxxxxx">
      <button type="submit" name="submit" style="background:none; border:0; padding:0; margin:0;">
        <img src="https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donate_LG.gif" width="98" height="26" title="PayPal - The safer, easier way to pay online!" alt="Spenden mit dem PayPal-Button">
      </button>
      </form>
    </div>
    • This reply was modified 4 years, 9 months ago by Weston Ruter.
Viewing 1 replies (of 1 total)
  • The topic ‘Paypal form in reader mode not visible’ is closed to new replies.