Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove_parent_hook_woocommerce_after_shop_loop_item_title() {
- remove_action( 'after_setup_theme', 'x_woocommerce_after_shop_loop_item_title', 10 );
- }
- add_action( 'after_setup_theme', 'remove_parent_hook_woocommerce_after_shop_loop_item_title');
- function x_woocommerce_after_shop_loop_item_title() {
- woocommerce_template_loop_add_to_cart();
- echo '</header><a href="' . get_permalink($product_id) . '">More info</a></div>';
- }
- add_action( 'after_setup_theme', 'x_woocommerce_after_shop_loop_item_title', 10 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement