[Resolved] Adding a WooCommerce filter

Home Forums Support [Resolved] Adding a WooCommerce filter

Home Forums Support Adding a WooCommerce filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #812937
    Martin

    I wanted to remove the JCB and Diners Club cards from the WooCommerce checkout page:

    02.17.2019-13.22.28

    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?

    #812972
    David
    Staff
    Customer Support

    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:

    https://docs.generatepress.com/article/adding-php/

    #813074
    Martin

    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;}

    #813131
    Tom
    Lead Developer
    Lead Developer

    Glad you found a solution! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.