{"title":"MenuItem - Liquid Object Reference","slug":"menu-item-liquid-object-reference","url":"https://support.storeconnect.com/articles/menu-item-liquid-object-reference","url_markdown":"https://support.storeconnect.com/articles/menu-item-liquid-object-reference.md","subtitle":null,"summary":"A MenuItem represents a link in a Menu. It can be a simple label with a link, or it might link to one of the following objects:\n      * Article\n      * ArticleCategory\n      * Page\n      * Product\n      * ProductCategory\n\n      MenuItems may contain child MenuItems.","type":"Developer_Documentation","video_url":"","keywords":"liquid, objects, MenuItem, template, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nA MenuItem represents a link in a Menu. It can be a simple label with a link, or it might link to one of the following objects:\n      * Article\n      * ArticleCategory\n      * Page\n      * Product\n      * ProductCategory\n\n      MenuItems may contain child MenuItems.\n\n:::note\nThis object supports custom data via the `data` attribute.\n:::\n\n## Attributes\n\n| Attribute | Type | Description |\n|-----------|------|-------------|\n| `article` | [Article](article-liquid-object-reference) | Returns the Article linked to this MenuItem |\n| `article_category` | [ArticleCategory](article-category-liquid-object-reference) | Returns the ArticleCategory linked to this MenuItem |\n| `child_categories` | List | Returns a list of child categories for the linked object. Only relevant when linked_type is one of: article_category, page, product_category |\n| `child_category_levels` | Number | Returns the number of levels to show for child categories |\n| `hidden?` | Boolean | Returns true if this MenuItem is hidden |\n| `id` | String | Returns the unique id for this MenuItem |\n| `identifier` | String | Returns the value of the Identifier attribute |\n| `image` | [Image](image-liquid-object-reference) | Returns the Image for to this MenuItem |\n| `link_label` | String | Returns the label for the link, based on its type and linked object (if any) |\n| `link_target` | String | Returns the target url or path for the link, based on its type and linked object (if any) |\n| `link_type` | String | Returns the type of link this is. It will be one of: article, article_category, page, product, product_category, link |\n| `menu` | [Menu](menu-liquid-object-reference) | Returns the Menu linked to this MenuItem |\n| `menu_items` | List[[MenuItem](menu-item-liquid-object-reference)] | Returns a list of MenuItems belonging to this MenuItem |\n| `name` | String | Returns the name of this MenuItem |\n| `page` | [Page](page-liquid-object-reference) | Returns the Page linked to this MenuItem |\n| `parent_menu_item` | [MenuItem](menu-item-liquid-object-reference) | Returns the parent MenuItem of this MenuItem |\n| `position` | Number | Returns the position of this MenuItem |\n| `product` | [Product](product-liquid-object-reference) | Returns the Product linked to this MenuItem |\n| `product_category` | [ProductCategory](product-category-liquid-object-reference) | Returns the ProductCategory linked to this MenuItem |\n| `show_image?` | Boolean | Returns true if this MenuItem should show an image |\n| `style_classes` | String | Returns the CSS classes that should be added for this MenuItem |\n| `url` | String | Returns the url that this MenuItem links to (if any) |\n\n## Available on\n\n- [Menu - Liquid Object Reference](menu-liquid-object-reference) — `menu_items`"}