So, you’ve added a PayPal button to a page or post within your site but it’s ungainly large, and very fuzzy. In this tutorial, I will show you how to Resize a Large PayPal Button in a WordPress theme:
To resize, we will need to do two things:
- “Wrap” the code provided by PayPal to add in our “class” and
- Update the stylesheet with the new “class”
Once you have retrieved the code from PayPal, add the code into your desired post, page, or widget, using the code snippet below:
Update your stylesheet by adding in this code snippet:
Here is how your button will look after making this update:
If you would rather not update your stylesheet, since that will be overwritten with any theme updates, you can add this to your “Additional CSS” section: Go to Dashboard > Appearance > Customize > Additional CSS > add in the CSS snippet there.
Are you looking for theme customization help? We can help you with that! Send me a note.