![]() If you want to customize your button, create it with CSS or SVG, then use the donation page link that PayPal provides. If you want the simplest way to add donations to your website without writing any code, go with the standard, gold, PayPal Donate button and use the pop-up experience. I'd like to see buttons provided in the style we see on the actual donation page. I don't love the look of the default buttons, specifically because the "large" button is still very small. With PayPal's hosted buttons, I didn't like the way my uploaded image rendered as a button and I wasn't sure how to make it look better. We don't get that level of customization with the Donate SDK hosted button. I might want a snazzier button with animations and hover states. I like using a CSS donate button most because it's the easiest to customize. This requires some custom CSS and HTML because PayPal doesn't give you code for CSS buttons. The example with a CSS donate button links to the donation page URL that PayPal provides. This is more work than using the PayPal designed button because you have to create a button image that will look good when it's rendered. It's not mentioned but it's best to make sure that the image is less than or equal to 300px wide before you upload because the rendered button has a max-width of 300px. PayPal will also host a button image that you upload in the first step of customizing your button. ![]() The simplest option is to take the code and Donate button image that PayPal provides and paste it into your website HTML. I created three pages to show adding a Donate button with three levels of visual customization. Why three pages to show the Donate button?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |