Skip to main content
All CollectionsPolicies
How to embed a policy on Shopify
How to embed a policy on Shopify
Updated over 2 months ago

Termly provides three ways to embed a policy on your Shopify website.


Your options include:

  • HTML format: Pasting static HTML directly to your website

  • URL: Linking to a Termly-hosted URL (available for Pro+ users)

  • Code snippet: Embedding the policy on your page using a code snippet (available for Pro+ users)

Installation options

HTML

Follow these steps to add your policy using HTML:

  1. Go to your Shopify admin dashboard, click Settings, then select Policies.

  2. Scroll to the relevant policy section, and click the <> (Show HTML) button in the upper-right corner.

  3. Go to your Termly Dashboard and select your policy. Click Add to Website, select HTML Format, and click Copy To Clipboard.

  4. Return to your Shopify Legal page, and paste the HTML into the text box.

  5. Click Save to add your policy to your Shopify store.

Known issues

  1. Shopify Strips <style> Tags for HTML embeds:

    • When embedding Termly’s HTML policy on a Shopify page, you might notice that the <style> tags are displayed as text at the top of the page. This occurs because Shopify automatically strips these tags from the HTML, disrupting the intended appearance of your policy.

  2. Missing Information in Previews:

    1. When previewing any version of the Termly policy on Shopify—whether it's the HTML version, code snippet, or URL version—you may see missing information, such as the "Last Updated" date and other dynamic content. This issue is specific to Shopify's preview environment.

    2. Important Note: The missing information reappears in the live version of the policy, so your customers will see the complete and correct details once the policy is published.

Recommended solution for HTML style issues

To ensure your Termly HTML policies are styled correctly on Shopify, follow these steps to create a standalone CSS file:

  1. Create a CSS File:

    • In your Shopify admin, go to Online Store > Themes.

    • Click on Actions > Edit Code for your current theme.

    • In the left-hand sidebar, navigate to the Assets folder and click Add a new asset.

    • Choose to create a new file and select CSS. Name this file something descriptive, like policy-styles.css.

  2. Copy the Styles:

    1. From the HTML code provided by Termly, copy all the content within the <style> tags.

    2. Paste this content into the newly created CSS file (policy-styles.css).

  3. Link the CSS File to Your Policy Page:

    1. In the same Edit Code section, find the template or section file that corresponds to your policy page.

    2. Add a link to the CSS file by inserting the following code in the <head> section of the page template:html

URL

You can add your Termly policy URL as a link directly from a Shopify menu, or you can add the link onto a separate page.

Follow these steps to add your policy URL as a link directly from a Shopify menu:

  1. Go to your Shopify admin dashboard and click Online Store.

  2. Click Navigation.

  3. Select the menu where you would like to add your policy link. Policies are commonly found in the footer, but may also be placed into the main menu, or other additional menus you have.

  4. Click + Add menu item.

  5. Give your menu item an appropriate name, like “Shipping Policy.”

  6. Go to your Termly Dashboard and select your policy. Click Add to Website, select URL, and click Copy To Clipboard.

  7. Paste your Termly policy URL into the link section where it says Search or paste a link.

  8. Click Add.

  9. Click Save menu.

If you would prefer to add a URL onto a Shopify policy page, follow these steps:

  1. Go to your Shopify admin dashboard, click Settings, then select Policies.

  2. Scroll to the relevant policy section and type the link text you would like to appear into the text box, e.g. “Shipping Policy link.”

  3. Highlight the text and click Insert Link.

  4. Go to your Termly Dashboard and select your policy. Click Add to Website, select URL, and click Copy To Clipboard.

  5. Return to your Shopify Legal page, and paste the URL into the Link to box.

  6. Add text to the Link title box if you would like text to appear when a user hovers over the link.

  7. Click Insert Link.

  8. Click Save to add your policy to your Shopify store.

This will link to a Termly-hosted URL. This ensures your policies are updated automatically when you publish changes.

Code Snippet

Follow these steps to add your policy text using the code snippet:

  1. Go to your Shopify admin dashboard, click Online Store, then Pages.

  2. Click Add Page.

  3. Add a title to your page, like “Shipping Policy.”

  4. Go to your Termly Dashboard and select your policy. Click Add to Website, select Code Snippet, and click Copy To Clipboard.

  5. Return to your Shopify page.

  6. In the Content field, click <> (show HTML).

  7. Paste your code snippet into the text box.

  8. Click Save to publish the page.

  9. You can now link to this policy page in your menu, footer, or elsewhere on your Shopify site.

Using the code snippet ensures your policies are updated automatically when you publish changes.

Adding a policy as a regular Shopify page

Shopify’s legal page has built-in sections for a Privacy Policy, Refund Policy, Terms of Service agreement, and Shipping Policy. If you are adding a different type of policy — like a Cookie Policy or Disclaimer — or if you don’t want to use Shopify’s built-in legal sections, you can add your policies onto a regular Shopify page.

Follow these steps to add a policy as a new page:

  1. Go to your Shopify admin dashboard, click Online Store, then Pages.

  2. Click Add Page.

  3. Title your page.

  4. Go to your Termly Dashboard and select your policy. Click Add to Website, select your preferred format, and click Copy To Clipboard.

  5. Return to your Shopify page.

    1. If using HTML Format, click <> (Show HTML), paste your HTML code, then click Save.

    2. If using a URL, type the text you would like to appear and click Insert Link. Paste your URL into the Link to box. Click Save. This will create a hyperlink on the page.

    3. If using the code snippet, click <> (Show HTML), paste your code snippet, then click Save.

  6. You can now link to this page in your main menu, footer, or elsewhere on your Shopify site.

You find more information about adding policy pages to Shopify at Shopify’s Help Center.

Adding policy page links to your menus

If you use Shopify’s legal pages, any saved policies will automatically be added as a link in the footer of your checkout page. You may also want to add your policies to other places, like your main menu.

If you did not use Shopify’s built-in legal pages, you’ll need to follow these steps to add your policies as links to your footer or other menus.

To add a link to your policy to a menu, follow these steps:

  1. Go to your Shopify admin dashboard and select Online Store from the left-side menu.

  2. Click Navigation.

  3. Select the menu you would like to add a link to.

  4. Click + Add menu item.

  5. Give your menu item an appropriate name, like “Shipping Policy.”

  6. Under Link, select your policy page.

    1. If you used Shopify’s built-in legal pages, scroll down and select Policies. Your published Shopify policy pages will appear as options. Select which policy you would like to add.

    2. If you used a regular Shopify page, scroll down and select Pages. Your published Shopify pages will appear as options. Select which page you would like to add.

  7. Click Add.

  8. Click Save menu.

Did this answer your question?