How to Embed Documents into WordPress

Embedding documents into websites is super easy with Google docs. No Google account needed. No API key needed. Just follow the link to the tool:

https://docs.google.com/gview/

Once there, paste the URL of the file you want to embed into the Document URL field and press Generate. Copy the embed code into your page.

This works for WordPress too!

  • Upload the doc to be embedded with the WordPress Media Uploader (Media > Add New)
  • Edit the uploaded media so you can grab its URL
  • Visit https://docs.google.com/gview/
  • Paste the media’s ULR into the the Document URL field
  • Press Generate
  • Copy the embed code (it’s an iFrame)
  • Paste the code into a WordPress widget, page or post. Use the text editor instead of the visual editor when pasting HTML into a page or post.

And that’s how to embed documents into webpages. Works with Word docs, spreadsheets, PDFs and any other file type supported by Google Drive/Docs.

Does it get any easier?

Embed-Docs-With-Google-Docs-Viewer

Sharing is caring!

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x