How To Change The PayPal Icon In WooCommerce

Here’s another quick trick which allows you to change default Paypal icon that appears on the WooCommerce checkout page in WordPress. To do this, we are going to use woocommerce_paypal_icon filter.

To change WooCommerce Paypal icon use the following code snippet.

Useful Read: Change WooCommerce Shop Page Title

//change paypal icon on woocommerce checkout
function ccw_change_paypal_logo($logourl) {
	return get_template_directory_uri(). '/images/paypal.jpg';
}
add_filter('woocommerce_paypal_icon', 'ccw_change_paypal_logo');

 

 

0 Comments

Leave a Comment.