Created
August 16, 2013 09:37
-
-
Save jameskoster/6248556 to your computer and use it in GitHub Desktop.
Mystile - add to cart buttons on archives
This file contains 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
add_action( 'init', 'jk_mystile_add_to_cart' ); | |
function jk_mystile_add_to_cart() { | |
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am panicking! I tried to insert this code into my mystile child theme and I apparently totally screwed up and now I am getting an http error 500 message and I cannot do anything. Please HELP