Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Is it possible to query a page by ID in the Shopify Liquid Templating API?
I have a Page created called Bio. I would like to get the {{ page.content }} of the Bio page and use it on the home page, so when a content editor changes the Bio, it would update on both the Bio page AND the home page.
Something like
{{ assign bio_page = pages.page384848384.content }}
<p>{{ bio_page | strip_html | truncatewords: 48 }}</p>
Is this possible?
Solved! Go to the solution
This is an accepted solution.
Not by ID but you can reference items by their handle.
eg:
{{ pages.your-page-handle.content }}
This is an accepted solution.
Not by ID but you can reference items by their handle.
eg:
{{ pages.your-page-handle.content }}
User | RANK |
---|---|
41 | |
39 | |
23 | |
17 | |
12 |