Archived topic
Adding a WooCommerce filter
3 replies · Started by Martin on February 17, 2019
I wanted to remove the JCB and Diners Club cards from the WooCommerce checkout page:
https://www.screencast.com/t/A3TJgMxhxHou
I found this snippet of code on the web, and modified it to match the HTML that Woo is currently using:
https://silicondales.com/tutorials/woocommerce/remove-obscure-payment-logos-icons-woocommerce-stripe-gateway/
How do I properly configure a GeneratePress Element to make use of this?
Hi there,
you won't be able to add that function using the Elements module.
Either in you child theme functions.php or use Code snippets - more info here:
Oh right, Code Snippets. I had that plugin and added it there, but it still didn't work.
I noticed that each card had it's own class, so I just added this to the Additional CSS, which did work.
.stripe-jcb-icon {display:none;}
.stripe-diners-icon {display:none;}
Glad you found a solution! :)