Skip to content

Instantly share code, notes, and snippets.

@ahmedeshaan
Created May 16, 2020 10:52
Show Gist options
  • Save ahmedeshaan/3b8ad8f6e7269418076400f0c3e9098a to your computer and use it in GitHub Desktop.
Save ahmedeshaan/3b8ad8f6e7269418076400f0c3e9098a to your computer and use it in GitHub Desktop.
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