Support » Plugin: WooCommerce PayPal Payments » Logo image settings

Viewing 1 replies (of 1 total)
  • Plugin Support Joost van de Vijver

    (@joostvandevijver)

    Hello @strarsis

    There is no standard function in our plugin for adjusting the logo. The filter we often advise the merchants to use is the following:

    function woocommerce_paypal_payments_gateway_icon( $icon, $id ) {
        if ( $id === 'ppcp-gateway' ) {
            return '<img src="https://www.paypalobjects.com/digitalassets/c/website/marketing/apac/C2/logos-buttons/optimize/Online_Primary_Acceptance_Mark_RGB_V2_medium.jpg" alt="PayPal Payments" />'; 
        } else {
            return $icon;
        }
    }
    add_filter( 'woocommerce_gateway_icon', 'woocommerce_paypal_payments_gateway_icon', 10, 2 );

    However, I am not entirely sure that this is what you are asking for since this filter was already in the mentioned related thread. Please let me know what you are looking for.

    Kind regards,
    Joost

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.