0

Testing to see if 'Recommended' works

Guest Editor | James Kim

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:

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.



Older Post Newer Post


Leave a comment


Please note, comments must be approved before they are published

Liquid error (templates/article line 288): Could not find asset snippets/relatedblogs.liquid