Advertisement
Guest User

Untitled

a guest
Jul 20th, 2016
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 );
  2.  
  3. function my_custom_wc_template_loop_product_link_open() {
  4.     echo '<a href="' . get_the_permalink() . '" class="woocommerce-LoopProduct-link" target="_parent">';
  5. }
  6.  
  7. add_action( 'woocommerce_before_shop_loop_item', 'my_custom_wc_template_loop_product_link_open', 10 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement