How to exclude a vendor from the 'You May Also Like' section on my website?

I have a section on my site that displays recommended products under the heading “You May Also Like”. I need to remove one vendor from the products displayed in this section and I’m not sure what code to paste into the template to do that. Hopefully someone here has done this and can share? I think I need to adjust the label but I’m not sure. Or do I need to add a section of code to remove the vendor?

See code below:

“default”: “You may also like”,

“type”: “range”,
“id”: “products_to_show”,
“min”: 2,
“max”: 10,
“step”: 1,
“default”: 4,
“label”: “t:sections.related-products.settings.products_to_show.label”

Hi @giftsfulfilled depending on the theme you need to find and go into the section recommended-products.liquid , related-products , or similar name.

Then put in a logic condition to skip the products you don’t want showing, see dawn example below. Keeping in mind in some instances of other code may be expecting a specific set of product to be output such as for pagination.

If you need this customization done for you then contact me directly by mail for services, contact Info in signature.
Please always provide context, examples: store url, theme name, post url(s) , or any further detail.

Example in the dawn theme , you add something like the following immediately after the forloop starts.

{% if product.vendor == "vendorname" %}{% continue %}{% endif %}

https://github.com/Shopify/dawn/blob/main/sections/related-products.liquid#L36C16-L36C31

Good Hunting.

Thank you I did find the area for the code!