Solved

How to hide collection/all in alchemy theme

Boer
Tourist
6 1 1

Hi,

 

I am trying to hide the collection/all page so it can no longer be visited.

 

I have tried to put this in, but or I dont put in in the right place, or it does not work in my theme.

 

{% if collection.url == '/collections/all' %} <script type="text/javascript"> window.location = "your home link or where you want it to redirect"; </script> {% endif %}

 

Hope someone can help.

 

Thanks

 

Accepted Solution (1)

Boer
Tourist
6 1 1

This is an accepted solution.

I did manage. Just did not read the code and forgot to put in the redirect.

 

Thanks all!

View solution in original post

Reply 1 (1)

Boer
Tourist
6 1 1

This is an accepted solution.

I did manage. Just did not read the code and forgot to put in the redirect.

 

Thanks all!