Last active
March 4, 2019 09:17
-
-
Save akther80/af4c051ba4220ba8a0527388e89c10c3 to your computer and use it in GitHub Desktop.
Electro v2 - WooCommerce cart table replace remove icon with text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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