Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'woocommerce_after_shop_loop_item_title', function () {
- if(is_product_category('t-shirts')) {
- $thumb = get_the_post_thumbnail( the_ID());
- if(is_string($thumb) ) {
- echo '<div class="imagewrapper">' . $thumb;
- }
- }
- }, 9 );
- add_action( 'woocommerce_after_shop_loop_item_title', function () {
- if(is_product_category('t-shirts')) {
- $thumb = get_the_post_thumbnail( the_ID());
- if(is_string($thumb) ) {
- echo '</div>';
- }
- }
- }, 11 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement