Code Block Showing In Editor Preview but not on live site

  • Unknown's avatar

    Hello –

    I am using the HTML Code block on a website and while it shows in the block editor of the preview, it does not show in the live website.

    The code is the following:

    Membership Types
    Four Show Subscription $65.00 USD
    Active Annual Membership $30.00 USD

    Enter Name(s) of Recipients:

    But shows up with only the text from the fields on the site itself (scroll all the way down toward the bottom of the page, past the big black buttons): https://ilionlittletheatre.org/subscriptions-and-memberships/

    Any help is greatly appreciated.

    WP.com: Yes
    Jetpack: No
    Correct account: Yes

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Sorry about that. It seems that when I pasted the code into my forum message, it did exactly what it’s doing on the page, which is turning it into plain text in a table.

    I’ll try again to post the code itself and hope the post does not convert it:

    <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=”YAJUBG2VUZZBG”>
    <table>
    <tr><td><input type=”hidden” name=”on0″ value=”Membership Types”>Membership Types</td></tr><tr><td><select name=”os0″>
    <option value=”Four Show Subscription”>Four Show Subscription $65.00 USD</option>
    <option value=”Active Annual Membership”>Active Annual Membership $30.00 USD</option>
    </select> </td></tr>
    <tr><td><input type=”hidden” name=”on1″ value=”Enter Name(s) of Recipients:”>Enter Name(s) of Recipients:</td></tr><tr><td><input type=”text” name=”os1″ maxlength=”200″></td></tr>
    </table>
    <input type=”hidden” name=”currency_code” value=”USD”>
    <input type=”image” src=”https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_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>

  • Hi there,

    Standard PayPal embeds are not intended for WordPress.com sites so they do not function correctly. You can use advanced code by upgrading to our Business Plan however, which moves your site to our business-class hosting where you have dedicated resources as well as the ability to edit source code, access files directly via SFTP, as well as upload any plugin or theme “designed for WordPress”

    That said, if cost is an option you can consider upgrading to our premium plan, wich would allow you to use the Pay with PayPal block to create simple product/service listings: https://en.support.wordpress.com/pay-with-paypal/

    Also, without upgrading you can use the steps we offer here to add simple PayPal “Buy Now” buttons that will work correctly on your WordPress.com site.

    Hope that helps. Please let us know if you have any more questions.

  • The topic ‘Code Block Showing In Editor Preview but not on live site’ is closed to new replies.