Does anyone know of a way to use Liquid code on the policy pages? For example: https://d.pr/i/VQNZFB
The above code renders like this on the front-end: https://d.pr/i/rkSStw
Any help would be greatly appreciated, thanks!
Does anyone know of a way to use Liquid code on the policy pages? For example: https://d.pr/i/VQNZFB
The above code renders like this on the front-end: https://d.pr/i/rkSStw
Any help would be greatly appreciated, thanks!
Hi @Anish-SDG
hope you’re having a great day!
If you really want to use Liquid on legal/policy pages then you need to create a custom page template.
Following the steps above to access the code editor page.
Ignore the default template and copy page.liquid, calling it something like page.policy.liquid.
Create your custom page template like below:
Inside the newly created custom page template, you could use Liquid.
Create a new page called Privacy Policy and apply your new template to it as specified by the below screenshots. Fill out the heading and introduction copy and save the page.
Unfortunately, you’ll need to repeat this process for the other policy pages, which will require unique templates too.
If you have any further questions, please do reach out either here on the forum, or via private message/email.
This is an old thread, but in case anyone comes by here in the future, the best way to handle this can be found here: https://community.shopify.com/c/shopify-design/liquid-template-for-legal-pages/m-p/973051/highlight/true#M244428. It uses the policies content from your Shopify admin. ![]()