How can I edit URL in Brooklyn Theme to remove 'collections'?

hello I would like to edit my url so that “collections” is removed and the url would simply me my shop name/product name. instead of collections/product name.

I have seen a few hacks in the code for this using the product.grid.item liquid but that is not working for my theme as {collection} is not showing up in the code. I have pasted that code below

{{ product.title }} {% if on_sale %} {{ 'products.general.sale_price' | t }} {% else %} {{ 'products.general.regular_price' | t }} {% endif %} {% if product.price_varies %} {{ product.price_min | money_without_trailing_zeros }} + {% else %} {{ product.price | money_without_trailing_zeros }} {% endif %}

website is not live yet so I cannot link

1 Like

@Geoaparicioo
When you click on the product then it will show in url produts/product-name.
Same thing Should be with collection page collections/products/product-name (because it is a specific collection).

sorry it can’t be fixable. Without knowing exactly which type of products is (collection means category like men wear, womens wear, kids wear) it the collection.

I hope you have cleared about that. if you need any more help let me know.
Thank you.