skip to Main Content

Product Category Thumbnail Badge – Woocommerce

I am trying to add multiple product categories -to display category thumbnail has product badge in catalog page add_action ('woocommerce_before_shop_loop_item_title','alt_category_badge', 99); add_action ('woocommerce_product_thumbnails','alt_category_badge', 100); function alt_category_badge() { global $product; if ( is_product()){ global $post; $brands_id = get_term_by('slug', 'sunglasses', 'product_cat'); $terms…

VIEW QUESTION
Back To Top
Search