Community Forums › Forums › Archived Forums › General Discussion › Adding A Form Breaks The Theme??
Tagged: form tag
- This topic has 7 replies, 3 voices, and was last updated 10 years, 9 months ago by dev.
-
AuthorPosts
-
June 29, 2013 at 11:05 am #48374yellowdogMember
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>June 29, 2013 at 1:47 pm #48388devParticipantMaybe the 'smart' quotes are screwing things up.
Why not try this code and see if it works:
<form action="http://www.urlandpage.php" 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>
July 4, 2013 at 1:14 am #49136yellowdogMemberTx -I tried that and its still the same?
data:text/html,<p></p> just shows in address bar.
July 4, 2013 at 6:48 am #49158Doak HeggenessMemberJuly 4, 2013 at 7:34 am #49163yellowdogMemberI 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!
July 4, 2013 at 8:13 am #49173devParticipantYou 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?
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.
July 4, 2013 at 8:26 am #49176yellowdogMemberHi
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.
July 4, 2013 at 11:29 am #49214devParticipanthttp://www.carwindowtintingtraining.com/sign-up-to-the-tint-worx/
You must have fixed it. The page looks fine to me.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.