Created
May 3, 2019 10:59
-
-
Save vagelisp/dabd609a79ae5bad8f6ba75f9a702e07 to your computer and use it in GitHub Desktop.
This file contains 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
//remove the text {PHP} | |
add_filter( 'woocommerce_product_add_to_cart_text', 'change_text_woo' ); | |
function change_text_woo() { | |
return; | |
} | |
//add the icon {CSS} | |
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:after { | |
content: "\f111"; | |
font-family: dashicons; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment