How do I detect shopify if Homepage
? Previously there was a handler which was page.frontpage
which is not used anymore.
I need to exclude something from the homepage, so I can’t go for editing the index.liquid
file.
How do I detect shopify if Homepage
? Previously there was a handler which was page.frontpage
which is not used anymore.
I need to exclude something from the homepage, so I can’t go for editing the index.liquid
file.
3
Answers
Here is how we can do that:
I use it in this way:
To detect the homepage you should use double equals “==” the use of the exclamation “!=” is finding everything “not” equal to “index”.