Hide collections based on customer tags in Liquid

You can use liquid for that purpose.

There are two methods to get this work done.

  1. Using Liquid.

  2. Using CSS

Using Liquid

You can skip that collection by filtering customer tags.

carbon-3

Here the collection.all will be hidden for customer tagged with "Mujtaba"

Using CSS

You just need to add a class in collection list item.

shopify-section--{{ collection.handle }}

and then add a display none property to it.

carbon-5