DocumentsEmbed Google Docs

Embed Google Docs in Gutenberg

Step-by-step guide to embed Google Docs in Gutenberg using the Custom iFrame WordPress plugin. No coding required.

Overview

Custom iFrame lets you embed Google Docs in Gutenberg by pasting a published Google Doc URL into the block. Display any Google Doc directly on your WordPress page so visitors can read it without leaving your site.

Custom iFrame is a WordPress plugin by CoderzStudio that embeds 100+ external sources in Elementor and Gutenberg without writing any code.

Using Elementor instead? Follow the Embed Google Docs in Elementor guide.

Requirements

Open your Google Doc

Open the Google Doc you want to embed in Google Docs.

Publish the document to the web

Go to File > Share > Publish to Web. Click Publish, then click OK to confirm.

Copy the generated link

Copy the link shown in the dialog. Your Google Doc is now published and ready to embed.

Step 2: Install the Plugin

Install and activate the plugin

Go to your WordPress dashboard. Go to Plugins > Add New. Search for Custom iFrame by Coderz Studio, click Install Now, then click Activate.

Custom iFrame for Elementor WordPress plugin by Coderz Studio showing 3000+ active installations on the plugin repository page
Custom iFrame for Elementor WordPress plugin by Coderz Studio showing 3000+ active installations on the plugin repository page

Step 3: Add the Custom iFrame Block in Gutenberg

Open your page in the block editor

Go to the page or post where you want the Google Doc. Click Edit to open the Gutenberg block editor.

Add the Custom iFrame block

Click the Add Block button. Search for Custom iFrame. Click the block to add it to the page.

Step 4: Embed Google Docs in the Custom iFrame Block

Paste the Google Docs URL

Select the Custom iFrame block. In the Source field in the right panel, paste the Google Docs URL you copied. Your Google Doc appears inside the block in the editor immediately.

Step 5: Adjust Settings and Publish

Height: Set the iframe height to match your content and page layout. 600px to 800px works well for most documents.

Scroll Bar: Enable the scrollbar to let visitors scroll through longer documents.

Refresh Interval: Set how often the iframe refreshes. Useful if your Google Doc updates frequently.

Smart Load: Turn on lazy loading so the iframe loads only when it enters the viewport.

Custom iFrame block settings panel in Gutenberg showing height, auto height toggle, scroll bar, and refresh interval options for Google Docs embed
Custom iFrame block settings panel in Gutenberg showing height, auto height toggle, scroll bar, and refresh interval options for Google Docs embed

Click Update or Publish. Your Google Doc is now live on your WordPress site.

For a full walkthrough of every Custom iFrame block setting in Gutenberg, see the Set Up Custom iFrame in Gutenberg guide.

This guide showed you how to embed Google Docs in Gutenberg using the Custom iFrame plugin. From getting the publish link to adding the block and going live, the setup takes only a few minutes.

FAQ


Also Available For