Hide badges on all thumbnail images
-
Hello,
I would like to thank you for creating this really cool plugin. Unfortunately, I cannot figure one thing out. The badges are also displaying on all my thumbnails be default, which makes some theme layout totally unusable.
There is a sticky add to cart feature which consists of thumbnail image. The badges are also present and I would like to get rid of them here, because it overrides the image and looks bad. I have tried this code suggested in another topic, but I did not work.
if ( function_exists( 'YITH_WCBM' ) && !empty( YITH_WCBM()->frontend ) ) { remove_filter( 'woocommerce_single_product_image_thumbnail_html', array( YITH_WCBM()->frontend, 'show_badge_on_product_thumbnail' ), 99 ); }
(added via code snippets plugin)
The div class of this layout is:
shoptimizer-sticky-add-to-cart__content
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hide badges on all thumbnail images’ is closed to new replies.