Category: Embedding

articles related to embedding

Embedding YouTube Video in WordPress using Custom HTML block element.

So the YouTube Embed widget isn’t working in our version of WordPress. We can use another block element to embed it. That element is called “Custom HTML”, and it allows you to paste the embed code from YouTube Videos, and other places that provide you with embed code.

When you select that block element, it will look like the section below. In the image, I have included the code I used to embed the video below. You can see that it provides you with an HTML view and a Preview view. The HTML view lets you see the code (top image), the Preview mode lets you see what it will look like after it applies the embed code (bottom image).

The Custom HTML block element in HTML code view mode
The Custom HTML block element in Preview view mode

Embed Google Data Studio Report in WordPress

Learn how to embed a Google Data Studio Report into WordPress page or post using a custom html block to add the embed code. There is a embed block type, but it does not appear to work for embedding the reports that we set up in our Data Studio Lab that show the data from our YouTube channel (I am not sure why, but it doesn’t).

The first thing you need is your YouTube Channel up and running with publicly visible videos that have been posted and viewed.

The second thing you need is to have your Google Data Studio account set up and a YouTube Channel Data Report as outlined in my Data Studio – YouTube Channel Lab.

Below is an example of how this will look when you are done. Below that is a YouTube video with directions to walk through preparing the report to be shared and embedded in a WordPress site.

A YouTube Channel Report created in Google Data Studio

YouTube Video showing how to use embed code from Data Studio

Incidentally, I also had to use the Custom HTML block to embed this video as well. The YouTube Widget did not work as planned. But we know how to get around that now too.