Adding A Form Breaks The Theme??

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

This topic is: not resolved

Tagged: 

This topic contains 7 replies, has 3 voices, and was last updated by  dev 1 year, 3 months ago.

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

    yellowdog
    Participant
    Post count: 36

    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=”http://www.mysite.com/wp-content/uploads/2013/06/let-me-in.png” width=”392″ /></div>
    </form>

    • This topic was modified 1 year, 4 months ago by  yellowdog.
    • This topic was modified 1 year, 4 months ago by  yellowdog.
    #48388

    dev
    Participant
    Post count: 458

    Maybe the ‘smart’ quotes are screwing things up.

    Why not try this code and see if it works:

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

    #49136

    yellowdog
    Participant
    Post count: 36

    Tx -I tried that and its still the same?

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

    #49158

    Doak Heggeness
    Participant
    Post count: 145

    I thought PayPal had a code you could use?


    Doak Heggeness, WordPress Development | Website

    #49163

    yellowdog
    Participant
    Post count: 36

    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!

    #49173

    dev
    Participant
    Post count: 458

    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 http://www.designfloat.com/blog/2012/08/17/text-editors-coding/ 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?

    [php]
    error_reporting(E_ALL); ini_set(‘display_errors’, 1);
    define( ‘WP_DEBUG’, true);
    [/php]

    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.

    http://www.NewMediaWebsiteDesign.com

    #49176

    yellowdog
    Participant
    Post count: 36

    Hi
    I managed to improve it a bit!

    see http://www.carwindowtintingtraining.com/sign-up-to-the-tint-worx/

    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=”http://mysite-payments.com/paypalCoupon.php”>
    <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=”https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif” border=”0″ name=”submit” alt=”Make payments with PayPal – its fast, free and secure!” /></div>
    </form>

    Thx for your time on this.

    #49214

    dev
    Participant
    Post count: 458

    http://www.carwindowtintingtraining.com/sign-up-to-the-tint-worx/

    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.