Get a fast, conversion-focused WooCommerce theme in 2025. Switch to Shoptimizer.

Home Documentation Shoptimizer Cart and Checkout Stripe Checkout Form Padding

Stripe Checkout Form Padding

If you use Stripe with WooCommerce, you might notice that the credit card form on the checkout page doesn’t look as good as it should. The padding within the inputs is reduced which makes the form look cramped.

Originally it looks like the screenshot to the left. Let’s transform it so it looks much better.

Stripe Padding Issue

Because the form is injected via an iframe, regular CSS won’t work for this. Instead, we’ll need to use a filter, as outlined in this article.

So within your child theme’s functions.php file, or via the Code Snippets plugin, add the following.

You can adjust the parameters further if you wish to change the light grey background color or the padding.

Success!

The discount has been applied. You will see it when you checkout.

There has been a problem

Unfortunately this discount cannot be applied to your cart.

$50
Off

Do you want a whopping $50 off Shoptimizer for WooCommerce?

Click the button below to get Shoptimizer for only $49. (Regular price: $99).
This is a special launch offer for today only.
Get it before it is gone!