Google Drive Content

Google Drive is a great tool for collaboration and reproducible research. It is also works well with WordPress allowing you to embed various content, and since it is linked to a document, spreadsheet, or presentation on Google Drive, it will be updated automatically on your WP site when you make changes. Here I show a few approaches to embedding content from your Drive in WP.

Anything on your Google Drive can be linked via a URL. Right click on the item and select “Get Sharable Link”

Insert the resulting link where you need it.

PDF’s

Embedding a PDF is a bit more convoluted (for reasons I do not understand). On Google Drive, select the PDF to show it in the browser. In the upper right corner, there is a menu (the three dots in the image below). Select “Open in New Window”

This will open it in a new window (duh).

Then do the same thing but this time, there is a different entry named “Embed Item”

This will provide a pop-up window with some HTML code for you to put into your page.

Insert this code into your page as HTML.

The resulting content looks like this, embedded in your page with the ability to ‘pop out’ the PDF into its own browser for your readers.

Embed Google Docs/Sheets/Slides

The last part embeds the document itself into the page. This is very helpful for presentations, you can embed your talk on your own webpage using Google Slides and then ‘present’ it where and whenever you need to.

It is pretty easy too. Open the document and select File->PublishtotheWeb

This will provide the following dialog

Select “Link” for a link to the presentation or “Embed” to make it a part of the page itself. If you are embedding it, it will provide you some HTML code, just like that above for PDF to insert into your page.

Which when inserted as HTML, looks like:

The cool thing here is that you have all the ‘remote presentation’ controls available for you to use to present directly from the browser.

Conclusion

I hope this helps out in using Google Drive elements within your Wordpress Site. It is a powerful combination of tools that allow you to disseminate information in a more timely and up-to-date fashion.

Father, Husband, Brewer, Professor

Middle aged guy trying to keep it all together and figure out how to best navigate the world as it is. Technology geek, practitioner of fermentation sciences, researcher, biologist.