Script showing at bottom of page
-
Hi,
The following script is being cut from its
<script>
container and showing under my checkout page.'); } else { $( this ).css( 'border-color', '' ); $( '.stripe-error-description', $( this ).parent() ).remove(); } }).change(); $( '#woocommerce_stripe_test_secret_key, #woocommerce_stripe_test_publishable_key' ).change(function(){ var value = $( this ).val(); if ( value.indexOf( '_live_' ) >= 0 ) { $( this ).css( 'border-color', 'red' ).after( ' This is not a valid test key. Test keys start with "sk_test_" and "pk_test_". ' ); } else { $( this ).css( 'border-color', '' ); $( '.stripe-error-description', $( this ).parent() ).remove(); } }).change(); }); });
It’s not happening with Twenty Sixteen, but I cant localise the problem within my theme. I tried renaming files, commenting out functions, one by one, but it won’t disappear… I know the code is in class-wc-gateway-stripe, but still I can’t figure it out.
Any help would be truly appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Script showing at bottom of page’ is closed to new replies.