Skip to content

Instantly share code, notes, and snippets.

@nikolab
Created December 21, 2016 15:04
Show Gist options
  • Save nikolab/e6304490e2c73cadbb5ae83e9dffa401 to your computer and use it in GitHub Desktop.
Save nikolab/e6304490e2c73cadbb5ae83e9dffa401 to your computer and use it in GitHub Desktop.
Adds product variables directly on shop page
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_add_to_cart', 30 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment