Support » Plugin: YITH WooCommerce Badge Management » Hide badges on product category page

  • Hi, how to remove badges on product category page and Only show on product details page?
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    you want to remove it only in the loop of Categories or in shop page, too ?

    Thread Starter diardk

    (@diardk)

    Hi, I want it not to show in category and shop page, it only shows in product details page / product page.

    Thanks

    Thread Starter diardk

    (@diardk)

    ??

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    please add following code in the file functions.php of your theme and let us know.

    if( function_exists( 'yith_wcbm_frontend' ) ){
    	remove_filter( 'woocommerce_product_get_image', array( yith_wcbm_frontend(),'show_badge_on_product' ), 999, 2 );
    }
    Thread Starter diardk

    (@diardk)

    Hi

    I have tried this code in the theme / functions.php but it does not working!
    I use Puca theme
    Hope you can help me

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    could you share with us the link of your website?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.