I am trying to create a single link (inside a snippit) that will link to any given page but I can’t figure out how to do it. I am using this general structure:
{{ 'Link Text' | link_to: X }}
I don’t know what the parameter for x should be to access page/product on my site. Appreciate any help.
From:
wiki.shopify.com/Link_to(link now broken)This should create a link that looks like:
More info on links in liquid here: http://wiki.shopify.com/Link
Update 1:
You should also be able to use relative links:
Update 2:
Ore better yet, you can reference the page’s handle: {{ ‘Title’ | pages.pagehandle.url }}