Add your document library to Wix

Wix lets you drop your hosted document library onto any page through its Embed Code element. Follow the steps below and you will have it live in a few minutes.

Step 1: Copy your embed code

Sign in to your hosted dashboard, head to the Libraries screen, and click Copy code beside the library you want to show. You will receive a single snippet that looks like the one below, though you should always paste the code from your own dashboard rather than this sample:

<iframe src="https://your-library.documentlibrary.app/?dlp_embed=1" title="Document library" style="width:100%;border:0;height:600px;" loading="lazy"></iframe>
<script src="https://your-library.documentlibrary.app/?dlp_embed_resize=1" async></script>

The same snippet works no matter which platform you are building on.

Step 2: Create a page for your library

Inside the Wix editor, open Pages & Menu and click + Add Page. Pick a blank page and call it Document Library. Wix will place it in your site menu for you.

Step 3: Add an Embed Code element

With the new page open, click Add (+) in the toolbar on the left, pick Embed Code, and then choose Embed HTML.

Step 4: Paste your embed code

Over in the settings panel, switch Choose what to embed to Code. Drop your snippet into the box and hit Apply, and the library will render inside the element.

Pasting the document library embed code into the Wix Embed Code element

Step 5: Resize the box to fit your library

Do not skip this part. Grab the element’s edges and pull it out to full width, then stretch it tall enough to show all your documents (roughly 700px suits six documents to begin with). A box that is too short forces the library to scroll inside itself, and one that is too narrow squashes the table down to a single column.

Step 6: Publish and view your library

Click Publish. Bear in mind that the editor’s Preview will not run embeds, so the library only appears on the published version of your site. Open your published page and you will find the document library there, ready for visitors to search it, filter by category, and download or preview any document.

A document library displayed on a published Wix page

More in Platforms