Remove ‘Sold By’ in Vendor Store Page

This snippet will hide the “Sold By” text in the product grid on the example.com/vendor/xyz vendor storefront page. This is kind of a personal preference thing, since displaying “Sold By” on that page is superfluous. Note, this works well with our other Sold By text snippets.

As always, this is either added to your Child Theme’s functions.php file, or consider using the My Custom Functions Pro plugin to manage and organize all your snippets.

add_filter( 'wcmp_sold_by_text_after_products_shop_page', 'storefront_remove_sold_by_text' );

function storefront_remove_sold_by_text() {
  if( is_tax( 'dc_vendor_shop' ) ) {
    return false;
  } else {
    return true;
  }
}

Tested and working on Woocommerce 4.6.1, WCMp 3.5.10

Is this no longer relevant or not working? Please let us know in the comments!

Comments on this post

Your email address will not be published. Required fields are marked *