DocumentsEmbed Google Sheets

Embed Google Sheet in Gutenberg

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

Overview

Custom iFrame lets you embed Google Sheet in Gutenberg by pasting a published spreadsheet URL into the block. Display live data, reports, and tables directly on your WordPress page without an API key.

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 Sheet in Elementor guide.

Requirements

Open your Google Sheet

Open the Google Sheet you want to embed in Google Drive.

Publish the sheet to the web

Go to File > Share > Publish to web. Choose which sheet to publish (one tab or the entire document). Click Publish, then confirm by clicking OK.

Copy the published link

Copy the generated link. The URL ends in /pubhtml. This is the URL you will paste into the Custom iFrame block.

Paste the /pubhtml link into a browser where you are not logged into Google. If the spreadsheet does not load, it was not published correctly. Repeat the publish step.

Step 2: Install the Plugin and Add the Block

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

Open your page in the block editor

Go to the page or post where you want the spreadsheet. 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 3: Embed Google Sheet in Gutenberg

Paste the Google Sheet URL

Select the Custom iFrame block. In the Source field in the right panel, paste the /pubhtml URL you copied. The spreadsheet appears inside the block in the editor.

Set the height

Set Height to fit your spreadsheet. Enable Auto Height to resize automatically based on the content.

Step 4: Adjust Settings and Publish

Scroll Bar: Enable the scrollbar to let visitors scroll through wider spreadsheets.

Refresh Interval: Set how often the iframe refreshes. Useful if your spreadsheet data updates frequently.

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

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

Want to add a custom watermark (Pro), device frame (Pro), or full screen button? See the Set Up Custom iFrame in Gutenberg guide for all block options.

This guide showed you how to embed Google Sheet in Gutenberg using the Custom iFrame plugin. From publishing the spreadsheet to pasting the URL and updating the page, the whole setup runs through the block editor without any code.

FAQ


Also Available For