This will probably be the most elementary questions this thread has ever received, but i'm desperate for help and have wasted so many hours. I am building an ecommerce website. I've been tweaking the CSS and adding PHP into Code Snippets plugin to get the website to look the way I want to look. Here are the two things that for the life of me, I cannot figure out.
function rs_removed_icon( $icons ) {
$icons = str\_replace( '<img src="[https://trendypupstore.com/wp-content/plugins/woocommerce-gateway-stripe/assets/images/icons/credit-cards/jcb.svg](https://trendypupstore.com/wp-content/plugins/woocommerce-gateway-stripe/assets/images/icons/credit-cards/jcb.svg)" alt="JCB" width="32" style="margin-left: 0.3em" />', '', $icons );
$icons = str\_replace( '<img src="[https://trendypupstore.com/wp-content/plugins/woocommerce-gateway-stripe/assets/images/icons/credit-cards/diners.svg](https://trendypupstore.com/wp-content/plugins/woocommerce-gateway-stripe/assets/images/icons/credit-cards/diners.svg)" alt="Diners" width="32" style="margin-left: 0.3em" />', '', $icons );
return $icons;
}
add_filter( 'woocommerce_gateway_icon', 'rs_removed_icon');
Any help is greatly appreciated. Thank you in advance. I wouldn't have written this post if I hadn't tried hard to solve this prior.