Adding A Form Breaks The Theme??

Community Forums Forums General Discussion Adding A Form Breaks The Theme??

This topic is: not resolved


This topic contains 7 replies, has 3 voices, and was last updated by  dev 2 years, 4 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #48374


    I am adding a paypal form to a page and as soon as i do it breaks the theme.
    i have deactivated all the plugins and its still the same.

    i switched to the twenty twelve theme and it seems ok.
    I am using the Modern Portfolio Theme.

    As soon as i add the form code and try and load the page the page is blank with data:text/html,<p></p> displayed in the address bar.

    Does anybody have any idea whats going on?

    the form code is like this

    <form action=”http://www.url and page.php” method=”post” name=”PaymentForm”>
    <div>Enter Coupon Code: <input type=”text” name=”coupon_code” size=”20″ /></div>
    <input type=”hidden” name=”cmd” value=”_xclick-subscriptions” /> <input type=”hidden” name=”currency_code” value=”USD” /> <input type=”hidden” name=”item_name” value=”My Product” />
    <div><input type=”image” alt=”Make payments with PayPal – its fast, free and secure!” height=”130″ name=”submit” src=”” width=”392″ /></div>

    • This topic was modified 2 years, 5 months ago by  yellowdog.
    • This topic was modified 2 years, 5 months ago by  yellowdog.


    Maybe the ‘smart’ quotes are screwing things up.

    Why not try this code and see if it works:

    &lt;form action=&quot;<a href="http://www.urlandpage.php&#038;quot" rel="nofollow">http://www.urlandpage.php&#038;quot</a>; method=&quot;post&quot; name=&quot;PaymentForm&quot;&gt;
    Enter Coupon Code: &lt;input type=&quot;text&quot; name=&quot;coupon_code&quot; size=&quot;20″ &gt;&lt;br&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;cmd&quot; value=&quot;some text here&quot; &gt; 
    &lt;input type=&quot;hidden&quot; name=&quot;currency_code&quot; value=&quot;USD&quot; &gt; 
    &lt;input type=&quot;hidden&quot; name=&quot;item_name&quot; value=&quot;My Product&quot; &gt;
    &lt;input type=&quot;submit&quot; value=&quot;Make payments with PayPal &#8211; its fast, free and secure!&quot;&gt;


    Tx -I tried that and its still the same?

    data:text/html,<p></p> just shows in address bar.


    Doak Heggeness

    I thought PayPal had a code you could use?

    Doak Heggeness, WordPress Development | Website



    I just created the button in paypal rather than in DAP (Digital Access Pass) and it still breaks the theme!

    Maybe I will have to switch themes now!



    You are saying that you add the form HTML code to some page… using the “text” tab of the editor?

    Answer these questions for us:

    When you use the Twenty-Twelve them and bring up the page it is OK?

    When you switch to Modern Portfolio the site works but when you bring up that page the screen is blank, except for some HTML in the address bar?

    Have you deactivated all your plugins?

    If you remove the HTML code from the page, does it work ok?

    Have you first pasted the code into a text editor and then copying the code from there to paste into your WP page? (I use TextWrangler on the Mac. Not sure what is good for Windows, but it’s not Notepad because if you are not careful it can create RTF text which can break your WP page. I’ve heard Notepad++ is good. (See for some free editors)

    Have you tried putting the HTML into another page and trying that instead?

    Have you tried it using the Genesis “Sample” theme (which comes free with the framework?)

    Do you have any CSS that you added that might relate to something on that page?

    Obviously, have your cleared your cache as well as tried a different browser?

    Are you using a .htaccess file? If so, what is in it? Have you tried eliminating it (rename it to .htccess-xxx) for testing?

    Have you tried to put this code in your wp-config file and seeing what errors if any you get?

    error_reporting(E_ALL); ini_set(‘display_errors’, 1);
    define( ‘WP_DEBUG’, true);

    Without being able to log in and see it for myself, it is difficult for me to determine the problem, but above is how I’d go about trying to narrow it down.

    Perhaps if you up up a link to the site we can try it ourselves and see if we can figure it out.

    Perhaps your best bet is to give a login to the Genesis support team via a support ticket and see if one of then will go in and figure this out.

    Let us know what you find out.



    I managed to improve it a bit!


    It works fine in the twenty twelve theme
    I tried disabling all plugins before now
    I have no fancy extra css just regular style edits
    I tried on the basic genesis theme and it was the same
    I have took all the line breaks out of the code for the button and the button shows now – its a bit small though.

    Its the input are for the coupon code thats way too big now – not sure how to restrict that inn .css

    I did not know about that debug code, nor have i added it.

    I tried to create a page with the basic code but the page wont save , it just breaks – here is the code i used

    <form name=”PaymentForm” method=”post” action=””>
    <div>Enter Coupon Code:
    <input type=”text” name=”coupon_code” size=”20″ /></div>
    <input type=”hidden” name=”cmd” value=”_xclick-subscriptions”/>
    <input type=”hidden” name=”currency_code” value=”USD” />
    <input type=”hidden” name=”item_name” value=”The Tint Worx” />
    <div><input type=”image” src=”” border=”0″ name=”submit” alt=”Make payments with PayPal – its fast, free and secure!” /></div>

    Thx for your time on this.



    You must have fixed it. The page looks fine to me.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.