7 Responses

  1. keith

    Excellent…keep this WooCommerce info coming!

  2. James Koster

    You could also just hook into which may be less disruptive?


    // Add the img wrap
    add_action( 'woocommerce_before_shop_loop_item_title', create_function('', 'echo "";'), 5, 2);
    add_action( 'woocommerce_before_shop_loop_item_title',create_function('', 'echo "";'), 12, 2);

    1. James Koster

      D’oh that should have been;


      // Add the img 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);

  3. Marek

    How to wrap product categories images?

Leave a Reply