1. Home
  2. ReHub Theme
  3. Useful code snippets
  4. How to disable vendor blocks

How to disable vendor blocks

Sometimes, you want to hide vendor blocks from users on site. Usually, vendor plugins have option to disable “Sold by” badge in products, so, check settings of vendor plugin which you use. Some plugins don’t have this option, so, you can hide by css

.vendor_store_details{display:none !important}

You can place this in theme options – general options – custom css.

If you want to disable in product archives, use also

.wcvendors_sold_by_in_loop{display:none !important}

You can place this in theme options – general options – custom css.

If you want to hide only “Manage your Shop” link in dropdown user menu, use code

.user-dropdown-intop-menu .user-editshop-link-intop.menu-item{display:none !important}