Introduction
If the provided PayPal buttons do not match your site's theme, you can always customize an existing PayPal button. The following guide will show you step by step, how to change an existing PayPal button.
- Create a directory in your active theme called woo-payment-gateway.
- Create a directory inside woo-payment-gateway called paypal.
-
Copy the PayPal php file from the plugin's templates folder and add it to your theme's PayPal folder.
- Edit the button however you like. In this example, we will change the background color of the button to black.
<button id="braintree_paypal_button" class="paypalButton-standard"> <span class="paypal-button-logo"> <img src="<?php echo bt_manager()->plugin_assets_path() . 'img/paypal/paypal-logo-plain.png'?>" /> </span> </button> <style> body.bfwc-body .paypalButton-standard{ background-color: #000; } </style>
- Verify that your changes have taken affect.
Comments
0 comments
Please sign in to leave a comment.