Delete credit card icons on CART page
-
I have a problem with the credit card icons on my cart page not on my check out page. Under the “Proceed to Checkout” button there are the icons of visa, amex and mc. But this arent all of my payment options, so i wanted to get rid of them. But it seems impossible. I tried to apply some solutions like this:
′function rs_removed_icon( $icons ) {
$icons = str_replace( ‘‘, ”, $icons );
$icons = str_replace( ‘‘, ”, $icons );
$icons = str_replace( ‘<img src=”https://www.bikerino.com/wp-content/plugins/woo-gutenberg-products-block/assets/img/payment-methods/visa.svg” alt=”Visa”
width=”32″ style=”margin-left: 0.3em” />’, ”, $icons );
return $icons;
}
add_filter( ‘wc_block_components_payment_method_icons’, ‘rs_removed_icon’);′or this
′function rs_removed_icon( $icons ) {
$icons = str_replace( ‘amex‘, ”, $icons );
$icons = str_replace( ‘visa‘, ”, $icons );
return $icons;
}
add_filter( ‘wc-block-components-payment-method-icons’, ‘rs_removed_icon’);′but i dont get it to work.
I am not a developer, so maybe its beyond my capability.
Any ideas on this topic? I can not imagine that i am the only one with this problem.Many thanks in advance ??
The page I need help with: [log in to see the link]
- The topic ‘Delete credit card icons on CART page’ is closed to new replies.