Skip to content

Instantly share code, notes, and snippets.

@joedooley
Created November 1, 2015 01:24
Show Gist options
  • Save joedooley/7f3d63f09c01bcc95e54 to your computer and use it in GitHub Desktop.
Save joedooley/7f3d63f09c01bcc95e54 to your computer and use it in GitHub Desktop.
Wrap WooCommerce archive image in div
// 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