Created
November 1, 2015 01:24
-
-
Save joedooley/7f3d63f09c01bcc95e54 to your computer and use it in GitHub Desktop.
Wrap WooCommerce archive image in div
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
// WooCommerce add the image wrap | |
add_action( 'woocommerce_before_shop_loop_item_title', create_function('', 'echo "<div class=\"img-wrap\">";'), 5, 2); | |
add_action( 'woocommerce_before_shop_loop_item_title', create_function('', 'echo "</div>";'), 12, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment