Created
May 16, 2020 10:52
-
-
Save ahmedeshaan/3b8ad8f6e7269418076400f0c3e9098a to your computer and use it in GitHub Desktop.
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 wvs_teepro_theme_support() { | |
remove_action( 'woocommerce_after_shop_loop_item', 'wvs_pro_archive_variation_template', 30 ); | |
remove_action( 'woocommerce_after_shop_loop_item', 'wvs_pro_archive_variation_template', 7 ); | |
add_filter( 'woo_variation_swatches_archive_add_to_cart_select_options', function () { | |
return '<i></i><span class="tooltip">' . __( 'Select options', 'woocommerce' ) . '</span>'; | |
} ); | |
add_filter( 'woo_variation_swatches_archive_add_to_cart_text', function () { | |
return '<i></i><span class="tooltip">' . __( 'Add to cart', 'woocommerce' ) . '</span>'; | |
} ); | |
} | |
add_action( 'init', 'wvs_teepro_theme_support' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment