Object handles
Handles are used to access the attributes of Liquid objects. By default, a handle is the object's title in lowercase with any spaces and special characters replaced by hyphens (-). Most objects in Shopify (products, collections, blogs, articles, menus) have handles.
For example, a page with the title "About Us" can be accessed in Liquid via its handle about-us
as shown below:
In this article
How handles are created
A product with the title "Shirt" will automatically be given the handle shirt
. If there is already a product with the handle shirt
, the handle will auto-increment. In other words, all "Shirt" products created after the first one will receive handles like shirt-1
, shirt-2
, and so on.