How to show Word, Excel and PowerPoint files in Document Library Pro
The Document Library Pro plugin works with any file type, including Word documents, Excel spreadsheets and PowerPoint presentations. People can always download them. You can also let people view them on your site, either in a popup or on the single document page.
Preview Office files in a popup
If you enable the document preview, a Preview button appears next to each Word, Excel and PowerPoint file. Clicking it opens the file in a popup without downloading it.
Microsoft's free Office viewer displays these previews. This means:
- Previews only work for public documents.
- Microsoft's servers receive a temporary copy of each file that someone previews.
- Excel files over 25MB, Word files over 100MB and PowerPoint files over 300MB don't get a Preview button.
Show Office files on the single document page
To show the file on the page itself, add an embed to the document's main content. See adding embedded content to the document library for the steps. You can embed Office files in two ways:
- Embed Any Document - The free Embed Any Document plugin shows a file from your Media Library using Microsoft's or Google's online viewer. Like the preview, this only works for public documents.
- OneDrive or Google Drive - Upload the file to OneDrive or Google Drive and paste its embed code into the document's content. Microsoft or Google then hosts a copy of the file. Anyone with the link can open it.
For more information about different ways to use Document Library Pro with spreadsheets, check out this video from one of our live Q&A sessions in which a customer asked about this:
Can I embed Google Drive files in Document Library Pro?
To make Google Drive files viewable in WordPress, we recommend using an embedder plugin such as Embed Files from Google Drive.