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

In your hosted dashboard, open Publish Library to find your embed code, then copy it. Most sites have a single library, and the Publish Library page is where its embed code lives. (If you have built more than one library, copy the code for the one you want from the Libraries screen instead.) Always paste the exact code from your own dashboard, not the sample below:

<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

Related articles

Ready to put your documents in a searchable library?

Set up your first library in minutes - as a WordPress plugin, embedded on any site, or a hosted library of your own.

Get Started Free

14-day free trial Cancel any time