FROM CACHE - en_header

Liquid template for legal pages

Thomas_Larsen
Tourist
11 0 1

Hello 🙂

Is is possible to have your own template for Privacy policy, Refund Policy and Terms of service?

Thanks in advance

- Thomas
Replies 8 (8)
Thomas_Larsen
Tourist
11 0 1

Any solutions??

- Thomas
JamesM
Tourist
10 0 1

I was looking to do something similar. I couldn't find a way to edit the way the page was displayed. The solution for me was to create separate pages for the legal pages and then copy and paste the text from the legal pages in shopify settings. e.g. Privacy policy, Refund Policy and Terms of service.

 

This allowed me to edit the content and display the page how I wanted.

 

Hope this helps.

Ross_Angus
Shopify Partner
15 0 2

Here's my take on it: the policy objects are global and can be pulled into any page on the site. My guess is that the privacy policy is a global object in case it needs to be pulled into other pages such as contact forms.

Ignore the default layout and copy page.liquid, calling it something like page.privacy-policy.liquid.

Inside this template, you have access to four pieces of content:

  1. page.title - the page title of this page
  2. page.content - the content for this page (this could be used as an introduction to the privacy policy
  3. shop.privacy_policy.title - the title for the privacy policy itself
  4. shop.privacy_policy.body - the content of the privacy policy

Create a new page called Privacy Policy and apply your new template to it. Fill out the heading and introduction copy and save the page. Add it to the navigation of your site. Note that the automatically generate Privacy Policy page can be found from a pop-up which appears from the link field, once it has focus - do not select this page! Instead, from the same pop-up menu, select Pages and then your new Privacy Policy page should be available as an option.

Unfortunately, you'll need to repeat this process for the other policy pages, which will require unique templates too.

MsDrox
Tourist
4 0 2

Even though this thread is old I'd like to weigh in that the proposed solution causes issues when you're using the Google app in Shopify to sync your products with Google Merchant Center.

To sync your products, Google requires that your Refund Policy is added to the footermenu of your pages. I created a page and included the policy-text there and linked that in the footermenu.

 

However, this is not accepted. It HAS to be the Shopify-created policy pages for some reason.

 

 

I am still looking for a solution to change these policy page templates because they are not in line with how my other pages look; they're narrower than other pages and the title is un-changeable. Any help would be welcome.

Boots
Shopify Partner
30 0 36

Nevermind this reply...  After posting my response, I realized that I had pretty much just repeated what @Ross_Angus has recently posted.  I misread his post, and Shopify doesn't give an option to delete your post, so here we are.  Absolutely do what he said above.  👍

gmlrm
Shopify Partner
2 0 1

When taking into consideration the response from @MsDrox, where the policy must exist as a Policy and not a page, I've decided to go with the following option...

 

CSS Rule to go full width...

 

 

    .shopify-policy__container {
        max-width: none;
    }

Within the content of each policy, I've switched to code view and added the following to the top...

<div class="page-width page-width--narrow">
<h1 class="main-page-title page-title h0">ENTER YOUR TITLE HERE</h1>
<div class="rte">

 

I've then closed that code up at the bottom of the content for each policy...

 

  </div>
</div>

 

Finally, I've added another CSS rule to hide the default title...

 

.shopify-policy__title {
        display: none;
    }

 

dimaloop
New Member
1 0 0

.shopify-policy__container { max-width: none; } works great!, thank you!

mehmetb
New Member
2 0 0

Hi - where does the css reside? is there a css file for policies in liquid assets?  I couldn't find it.