0:00
Hello everyone, welcome to Qt blogging and in this video I will show you how you can
0:04
add schema markup to your WordPress website without using any plugin. So in the last video, I will show you that how to generate video schema
0:13
So in this video, I will show you how you can paste it to your WordPress website
0:19
So all you need to do is just copy this code, schema code and go to your WordPress dashboard
0:27
And here you have to click on the post section and here select the blog post where you want
0:34
to add the schema code and here you have to enable the custom field
0:40
So to do this, go to the top right corner and here click on option and here scroll down
0:47
and here you have to select the preference. So click on it and here you will see the four options
0:55
So here click on panels and here select the custom field and after selecting
1:02
click on enable and reload. After that, you will see a custom field section in your blog post
1:09
So scroll down and here you will see an option called add custom field
1:16
So here you have to click on the enter new button and here you simply type schema
1:23
And here in the value section, you have to paste the schema code
1:27
So paste the schema code. Now click on the add custom field button and click on update the blog post
1:35
In this way, you can paste the schema code to your WordPress website, but there is a cache
1:42
You have to enable a PHP function in your WordPress theme. So because if you put schema code in blog post without adding that code
1:54
then this code will not work. So for this, you have to go to the appearance section and here click on the theme editor
2:03
Now you have to copy a PHP code. So here I will explain how to do this
2:10
So just copy the PHP code from here and go to the header.php section
2:18
So let me just show you and here this is the header.php
2:24
And before changing this code, make sure to take a backup of this file
2:29
so that if you do anything wrong, then you can restore it back
2:34
So here search for the closing head tag. So just create a space just above it and paste the code and you have to click on the update file
2:51
After that, the schema code will work properly and you don't need to add any type of plugins to add schema code
2:59
All you need to just paste the schema code in the custom field area
3:05
and the schema code will work properly. And if you are using RankMath Pro plugin, then you don't need to add video schema
3:14
You just need to enable the video schema option from the dashboard
3:19
So here in the RankMath dashboard, scroll down and here you will see an option called schema structure data
3:26
So click on the setting here and here scroll down and you will see an option called auto detect video
3:36
So if you turn on this button, then the schema is auto generated by RankMath plugin
3:42
So let me just show you here in the post section. Click on edit button and here click on the RankMath option
3:53
And here you will see the video schema because this blog post has two videos on it
3:58
So it will generate two video schema for this blog post. But if you don't have RankMath Pro plugin
4:05
then you can add the schema code using the custom field. So if you have any doubt regarding this, then you can ask me in the comment section
4:14
And if you like this method, then hit the like button and subscribe to my
4:19
channel for more upcoming videos like this. I will see you in the next video