Shortcodes

Google Docs

Google Docs is a popular service for managing documents online. You can easily embed your Google Docs spreadsheets, documents, forms, and presentations into your WordPress.com site by copying and pasting the embed code.

Table of Contents

Privacy

Before you share a Google Docs file, please make sure that the document is public. If it is private, you’ll be the only one who can see it. To change your privacy setting, click the Share link at the top of the screen to make it public.

Google Docs share button

Note: If you’re using the new WordPress editor, you will need to paste the embed codes from the following instructions using the Custom HTML block.

If you’re using the classic editor, the embed codes need to be pasted in the HTML tab of your editor.


↑ Table of Contents ↑

Docs

To embed a Google Doc document into your site, open the document. Then click Publish to the Web under the File menu.

Google docs publish to the web

Click the Publish button.

Google Docs publish to the web

Then click the Embed tab and copy the embed code.

Google doc embed code

Paste the embed code into a Custom HTML block and it will show up on your page or post.

Do you want to embed a PDF file without Google Docs? See Embedding a PDF File.

The WordPress.com Add-on for Google Docs lets you write, edit, and collaborate in Google Docs, then save it as a page or blog post. Your images and most formatting will carry over too. No more copy-and-paste headaches!


↑ Table of Contents ↑

Google Drive

To embed a document, for example, a PDF from Google Drive, right-click the document, and click Share. Then click Change to anyone with the link. This will make the document public.

Then click Copy link and open that link in a new browser tab. This will show the document in full screen. Click the three vertical dots near the top right and click Embed item.

embed item from google drive

A pop-up will appear with the code inside. Copy and paste the embed code into a Custom HTML block and it will show up on your page or post.


↑ Table of Contents ↑

Sheets

To embed a Sheet from Google Docs, open the spreadsheet you want to embed and click on the Publish to the Web link under the File menu.

google sheets publish to the web

Click the Publish button. Then click Embed and copy the code.

Google sheet embed code

Paste the embed code into a Custom HTML block and it will show up on your page or post.


↑ Table of Contents ↑

Slides

To embed Slides into your site, open the project and Publish to the Web button under the File menu.

google slide publish to the web

Click the Publish button.

Click the Embed tab. There are a few dropdown menus to control the size and speed of the slides. Then, copy the embed code and paste it into a Custom HTML block and it will show up on your page or post.

google slides embed code

↑ Table of Contents ↑

Forms

To embed a Form, click Send button at the top-right corner when editing a form.

Then, switch to ‘code’ tab (the one with < >) and copy the entire embed code. Then paste the embed code into a Custom HTML block and it will show up on your page or post.

Note: The post/page must be published for the form to appear.


↑ Table of Contents ↑

External Documents

To embed a document (such as a Microsoft Word document) without converting it to Google Docs format, you can open your Google Drive on the browser and click New and then click File Upload.

After the upload completes, right-click the document, and click Share. Then click Change to anyone with the link. This will make the document public.

Then click Copy link and open that link in a new browser tab. This will show the document in full screen. Click the three vertical dots near the top right and click Embed item.

embed item from google drive

A pop-up will appear with the code inside. Copy the code and paste it into a Custom HTML block and it will show up on your page or post.

The embedded file will now show up when you preview or publish your post or page.

Still confused?

Contact support.

Not quite what you're looking for?

Get Help