Publish your library on another website Pro

Embed your FileDeck library on any other site — Wix, Squarespace, Shopify, Webflow, Framer or a custom front end — with one line of code. WordPress stays the engine.

Your FileDeck library doesn’t have to live only on your WordPress site. Publish generates a one-line snippet that embeds the full library — search, categories, layouts, previews, downloads, tracking — on any other website: Wix, Squarespace, Shopify, Webflow, Framer, Google Sites, an intranet page, or a custom Astro/Next.js front end.

<script src="https://example.com/?filedeck_embed_js=TOKEN" async></script>

The destination site needs no WordPress, no plugin, and no account. Your WordPress site stays the engine: you keep uploading, organizing and protecting documents exactly as before, and every embed updates live.

Generate a snippet

  1. Go to Documents → Settings → Publish.
  2. Choose what to publish: a category (or the whole library), the layout, columns and page size.
  3. Enter the destination website’s address. This locks the snippet to that site — nobody else can frame your library. (You can instead choose any website, with the trade-off that anyone could then embed it.)
  4. Click Generate snippet and copy the code. A live preview on the same screen shows exactly what visitors will see.

Snippets are stateless — nothing is stored, there is no list to manage, and the same selections always produce the same snippet. The single revocation lever is deliberate and global: changing the security keys in wp-config.php invalidates every snippet at once.

Adding it to each platform

Paste the snippet into any surface that accepts custom HTML:

  • Wix — Add → Embed code → Embed HTML, then paste the snippet.
  • Squarespace — add a Code block (requires a plan that allows code blocks) and paste.
  • Shopify — in the theme editor, add a Custom liquid or Custom HTML section to the page and paste.
  • Webflow — add an Embed element and paste (published sites only, on any paid site plan).
  • Framer — add an Embed component, set it to Code/HTML, and paste.
  • Astro, Next.js, plain HTML — paste the tag into your markup or component. (If you’d rather render your own markup from JSON instead of an iframe, see Use FileDeck with Astro, Next.js or any front end.)

If the destination site’s security policy blocks third-party scripts, use the plain iframe form shown under the snippet in the generator — same content, you just set the height yourself.

Embeds show public documents only

This is the one deliberate limit, and it’s a security decision, not a gap. Password unlocks, role restrictions and logged-in visibility all rely on cookies, and browsers block cookies inside cross-site frames. Rather than show unlock forms that could never work — or worse, guess — FileDeck excludes restricted documents from embeds entirely, enforced on the server. A restricted document never appears in an embed’s rows, search results or pagination counts, no matter who is viewing.

Protected-file downloads that you share via signed expiring links still work inside embeds — those links carry their own signature and don’t depend on cookies.

If you publish a category that is itself restricted, the generator warns you: that embed would be empty until the restriction is removed.

What the embed inherits

  • Layout and columns you chose in the generator; everything else (accent color, preview settings, download text) follows your library settings live.
  • Search and filters, including full-text content search on Pro.
  • Previews, downloads and tracking — downloads count in your activity log and analytics, attributed to the embed’s destination site.
  • Pagination — large libraries automatically switch to fast server-backed pages, same as on your own site.

Sizing and appearance

The embed sizes itself: it reports its height to the host page and resizes as visitors search, filter and paginate. It ships with a neutral system font and a transparent background so it sits naturally on the destination page. The destination site’s CSS cannot break the library, and the library’s CSS cannot leak out — the embed is fully isolated.

Troubleshooting

  • The embed shows nothing — check the destination address you locked the snippet to matches the site it’s on (scheme and domain must match exactly). Regenerate with the right address.
  • A document is missing — it’s restricted (visibility, password, roles or a client area). That’s the public-documents-only rule above.
  • The frame doesn’t resize — some builders sandbox custom scripts; use the plain iframe form and set a height.

Still stuck? Email support@getfiledeck.com.