Stripe Card Icons
-
Hi
I am trying to change the default credit card icons that appear below the card number input box on the check out page. I have found the code below in the WooCommerce docs.
add_filter( 'wc_stripe_payment_icons', 'change_my_icons' ); function change_my_icons( $icons ) { // var_dump( $icons ); to show all possible icons to change. $icons['visa'] = '<img src="https://mysite/wp-content/plugins/woocommerce/assets/images/icons/credit-cards/visa.svg">'; $icons['mastercard'] = '<img src="https://mysite/wp-content/plugins/woocommerce/assets/images/icons/credit-cards/mastercard.svg">'; $icons['jcb'] = '<img src="https://mysite/wp-content/plugins/woocommerce/assets/images/icons/credit-cards/jcb.svg">'; return $icons; }
The links to the icons are good as they display in the browser if I visit them. I am using the code snippets plugin to inject the code.
However I can’t get anything to show. Nothing changes.
Im hoping someone can point me in the right direction.
I have flushed by browser cache, also Cloudflare and on the server side I purged varnish and restarted Ngnix.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Stripe Card Icons’ is closed to new replies.