• Resolved Dani

    (@danicasati)


    How to display BY VENDOR label + vendor’s link only on single product page and hide it on loop?

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

    (@yithemes)

    Hi @danicasati

    thanks for contact us!
    Try to copy and past this code at the end of functions.php file of your theme:

    add_action( 'init', 'yith_wcmv_remove_show_sold_by_action', 30 );
    
    if( ! function_exists( 'yith_wcmv_remove_show_sold_by_action' ) ){
        function yith_wcmv_remove_show_sold_by_action(){
            if( function_exists( 'YITH_Vendors' ) ){
    
                $frontend = YITH_Vendors()->frontend;
    
                if( ! empty( $frontend ) ){
                    remove_action( 'woocommerce_after_shop_loop_item', array( $frontend, 'woocommerce_template_vendor_name' ), 6  );
                }
            }
        }
    }

    Let us know if work fine or not.

    Thread Starter Dani

    (@danicasati)

    Yes, this snippet works.
    Thanks for support.

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    you are welcome!
    If you like the plugin and our support, please, support us with a 5-star review.
    It takes just a minute.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BY VENDOR label only on single product’ is closed to new replies.