• Resolved albriro

    (@albriro)


    Hi, I would like to make my paypal checkout button smaller and change its color to blue. I would also like to add a little space between it and my “proceed to checkout” button.

    Any code for this?

    Thanks

    • This topic was modified 7 years, 2 months ago by albriro.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Praveen a11n

    (@spraveenitpro)

    Automattic Happiness Engineer

    Hi @albriro,

    That PayPal image is being loaded from Paypal’s servers. So in order to change it you will have to modify the plugin code. For customization requests you can check this page.

    Cheers!

    Hello @albriro,

    For PayPal button shape in checkout page navigate to: (line 46)

    wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/payment-forms/class-wc-braintree-paypal-payment-form.php

    For PayPal button shape in cart page navigate to: (line 141)

    wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-braintree-paypal-cart.php

    
    $default_button_styles = array(
    	label: 'checkout',       // pay | paypal | buynow | checkout | credit
    	size:  'responsive',     // small | medium | large | responsive
    	shape: 'rect',           // pill | rect
    	color: 'gold',           // gold | blue | silver | black
    	tagline: false,          // true | false   
    	fundingicons: true,      // true | false
    );
    
    madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    @tatifox is right ?? These default styles can be also overridden using the following filters:

    wc_braintree_paypal_cart_button_styles for the cart page,
    wc_braintree_paypal_button_styles for the checkout page.

    Cheers!

    AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Marking resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can the Paypal checkout button size be changed?’ is closed to new replies.