Integrate your legal documents in minutes

Your documents are ready and hosted on WebLegal.ai. Each document has a unique URL you can use directly. Choose the method that matches your technical level:

Using TOWeb, PageXL, Shopify, WooCommerce or WordPress? Go directly to the dedicated guide for your platform below.

Method 1: Simple link

The simplest method. Add a link to your document in your website's footer.

HTML
<a href="https://weblegal.ai/documents/votre-document/">Privacy Policy</a>

The visitor clicks and sees your legal document on a dedicated page, with the toolbar (copy, download, print).

Tip : place your legal links in your website's footer, like most professional websites.

Method 2: Overlay (popup)

The document opens in a modal window over your site, without leaving the page. This is the recommended method for the best user experience.

Step 1: Add the script (once only)

Add this line in the <head> of all pages of your site (or in your main template/layout). This way, the legal links in your footer will work everywhere:

HTML — add to <head>
<script src="https://weblegal.ai/js/weblegal-embed.js" defer></script>

Step 2: Add your links

Place your legal links in your website's footer. All links pointing to WebLegal documents will automatically open in an overlay:

HTML — links in your footer
<footer>
  <a href="https://weblegal.ai/documents/xxx/">Terms of Use</a>
  <a href="https://weblegal.ai/documents/yyy/">Privacy</a>
  <a href="https://weblegal.ai/documents/zzz/">Cookies</a>
</footer>
Advantage : the visitor never leaves your site. The document displays over the current page and closes by clicking X or pressing Escape. Since the script is on all your pages, the legal links in the footer work everywhere.

Method 3: Iframe (direct embed)

Embed the document directly in a page on your site, as if it were part of your content.

HTML
<iframe
  src="https://weblegal.ai/documents/votre-document/?toolbar=0&noheader=1"
  width="100%"
  height="800"
  style="border: none; max-width: 100%;">
</iframe>

The parameters toolbar=0 and noheader=1 hide the toolbar and header for a visually clean integration.

Method 4: Copy-paste the content

You can copy the content of your documents and paste it directly into your CMS or site editor.

  1. Open your document on WebLegal.ai
  2. Click Copy at the bottom right
  3. Choose the format:
    • HTML — for editors that accept HTML code
    • Plain text — for simple editors
    • Markdown — for static sites (Hugo, Jekyll, Astro...)
  4. Paste into your editor
Important : if you copy the content, automatic updates will not apply. With a link, overlay or iframe, your document automatically benefits from WebLegal improvements.

Appearance customization

Adapt the appearance of your documents to match your site. Configure the options below and copy the customized URL.

TOWeb Guide

TOWeb manages legal documents via 2 built-in locations:

  • Terms of Use/Terms of Sale page ("tos" section): displays the Terms of Use or Terms of Sale depending on whether your site has e-commerce or not. The link appears automatically in the footer.
  • Privacy/Cookies page: a dedicated section you assign in Options > Cookies & Privacy. This is where you place your privacy policy and/or cookie policy.

Step 1: Fill in the Terms of Use or Terms of Sale page

  1. Generate your Terms of Use (or Terms of Sale for e-commerce) on WebLegal.ai
  2. Click Copy HTML on your WebLegal document
  3. In TOWeb, open the "Terms of Use" (or "Terms of Sale") section located at the end of your sections list
  4. Paste the content into a paragraph on this page

Step 2: Create the Privacy / Cookies page

  1. Generate your Privacy Policy on WebLegal.ai and click Copy HTML
  2. In TOWeb, create a new section (e.g.: "Privacy Policy")
  3. Paste the HTML content into a paragraph
  4. In Options > Cookies & Privacy, assign this section as the consent page
  5. If you also want a separate cookie policy, create an additional section and paste the corresponding document

Step 3: Check the footer links

  1. Links to the Terms of Use/Sale page and cookie pages are automatically added by TOWeb to your pages whenever necessary
  2. In the Sections step, manually add all links to your legal documents (Terms of Use/Sale, Privacy / Cookies, etc.) in your site's footer
  3. Publish your site
TOWeb 14+ : the built-in site optimizer automatically checks for the presence of your legal pages and alerts you to any GDPR compliance issues (missing footer link, placeholder content, privacy page not assigned, cookie consent disabled).
E-commerce sites : the TOWeb TOS page automatically displays "Terms of Sale" instead of "Terms of Use". If you need both documents or more, create as many additional sections as needed and add their links to your footer.

PageXL Guide

PageXL has a dedicated screen for legal documents with 4 fields: Privacy Policy, Terms of Use, Cookie Policy and Terms of Sale.

Recommended method: copy-paste into dedicated fields

  1. Generate your documents on WebLegal.ai
  2. On each document, click Copy HTML
  3. In PageXL, open your page settings
  4. Paste the content into the corresponding field (Privacy Policy, Terms of Use, etc.)
  5. Save — PageXL automatically creates the pages and links
Automatic links : PageXL manages the fields %PRIVACY%, %TERMS%, %COOKIES% and %TOS% that you can insert in your texts to create links to the corresponding legal pages.
"Generate with AI" button : each field has a button that redirects you to WebLegal.ai to generate the corresponding document.

Shopify Guide

Method 1: Links in the footer

  1. Shopify Admin > Navigation > Footer menu
  2. Click Add menu item
  3. Name: "Privacy Policy", URL: your WebLegal URL
  4. Repeat for each document (Terms of Use, Cookies, Terms of Sale)
  5. Save

Method 2: Dedicated page with iframe

  1. Shopify Admin > Pages > Add page
  2. Click on </> (HTML mode)
  3. Paste the iframe code (see Iframe section above)
  4. Save and add the page to your navigation

WooCommerce Guide

  1. WordPress Admin > Pages > Add New
  2. Title: "Privacy Policy"
  3. Add a Custom HTML block
  4. Paste the iframe code
  5. Publish
  6. In WooCommerce > Settings > Advanced, assign your Terms of Sale and Privacy pages

WordPress Guide

  1. WordPress Admin > Pages > Add New
  2. Title: "Privacy Policy"
  3. Add a Custom HTML block (</> icon)
  4. Paste the iframe code or use Copy HTML from your WebLegal document
  5. Publish
  6. In Settings > Privacy, select your privacy page

Other platforms

These methods work with all platforms: Wix, Squarespace, Webflow, Prestashop, Magento, etc.

Option 1: Link (the simplest)

Add a link to your document in your site's footer or menu. Works everywhere.

Option 2: Iframe

If your platform allows adding custom HTML code, paste the iframe code (see Iframe section).

Option 3: Overlay with weblegal-embed.js

If you have access to the <head> of your site, add the integration script (see Overlay section). Links to your documents will open as popups.

Option 4: Copy-paste

Copy the content of your document (HTML, plain text or Markdown) and paste it into your editor. See Copy-paste.

URL Parameters (advanced)

Add these parameters to your document URLs to customize their appearance.

Parameter Values Default Description
themelight, dark, autoautoColor theme (auto follows system)
toolbar0, 11Show/hide the toolbar
fontGoogle FontArialBody font
hfontGoogle Font= fontHeading font
linkcolorHex (no #)4361EELink color
credit0, 10"Generated by WebLegal.ai" credit
logoURL https://Logo image instead of name
maxwidth600-1400960Maximum width in pixels
noheader0, 10Hide the header
nofooter0, 10Hide the footer
print0, 10Open print dialog automatically
Example: dark document with Inter font and green links
https://weblegal.ai/documents/xxx/?theme=dark&font=Inter&linkcolor=10b981

Managing your documents

Save a copy

Click Download in your document's toolbar to get a standalone HTML file.

Export to PDF

Click Print then choose "Save as PDF" in the dialog box. Or use the direct link:

Direct PDF link
https://weblegal.ai/documents/xxx/?print=1&toolbar=0

Automatic updates

Your documents are served dynamically. Any WebLegal improvement (dark mode, new features, fixes) is applied automatically to all your documents, including previously generated ones.

Frequently asked questions

Each purchase generates documents for a specific site. If you manage multiple sites, you will need a set of documents per site.

All improvements (dark mode, new copy options, layout fixes) are automatically applied to all your documents, even those generated months ago.

No. All WebLegal documents have a noindex, nofollow tag to avoid duplicate content and protect your SEO.

You can copy the content (HTML, plain text or Markdown) and edit it freely. However, automatic updates will no longer apply to a modified copy.

Yes. On mobile, the overlay displays in full screen for optimal readability.