Skip to content

Instantly share code, notes, and snippets.

@akther80
Last active March 4, 2019 09:17
Show Gist options
  • Save akther80/af4c051ba4220ba8a0527388e89c10c3 to your computer and use it in GitHub Desktop.
Save akther80/af4c051ba4220ba8a0527388e89c10c3 to your computer and use it in GitHub Desktop.
Electro v2 - WooCommerce cart table replace remove icon with text
function wc_cart_table_replace_remove_icon_with_text( $html, $cart_item_key ) {
return str_replace( '×', 'Remove', $html );
}
add_filter( 'woocommerce_cart_item_remove_link', 'wc_cart_table_replace_remove_icon_with_text', 10, 2 );
table.cart .product-remove a {
font-weight: 700;
color: #7E354D;
font-size: 14px;
}
table.cart .product-remove a:hover,
table.cart .product-remove a:focus {
color: #7E354D;
}
table.cart .product-remove a:before {
content: "\f00d";
font-family: "Font Awesome 5 Free";
display: inline-block;
color: #7E354D;
text-indent: 0;
font-size: 12px;
margin-right: 2px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment