Below, I will explain ONLY STEPS, NO CODE / NO SCRIPT, and ALL POSSIBLE METHODS to add Schema Markup in WordPress WITHOUT using any plugin.
You can add Schema Markup in WordPress without any plugin using 7 practical methods.
METHOD 1: Using Custom HTML Block (Gutenberg)
Best for:
-
Single pages
-
Blog posts
-
Beginners
Steps:
-
Login to WordPress Dashboard
-
Go to Pages → All Pages or Posts → All Posts
-
Click Edit on the page/post
-
Click ➕ Add Block
-
Select Custom HTML
-
Paste your schema markup inside this block
-
Click Update / Publish
Schema will load only on that page
METHOD 2: Using Elementor (Free Version)
Best for:
-
Elementor users
-
Landing pages
Steps:
-
Open the page with Edit with Elementor
-
Drag the HTML widget
-
Paste schema markup inside the widget
-
Click Update
Works even without Elementor Pro
METHOD 3: Add Schema in Header.php (Site-Wide)
Best for:
-
Organization schema
-
Local business schema
-
Website-level schema
Steps:
-
Go to Dashboard → Appearance → Theme File Editor
-
Open header.php
-
Scroll to the
<head>section -
Paste schema markup before the closing
</head>tag -
Click Update File
Use child theme to avoid loss during updates
METHOD 4: Add Schema via Functions.php (Dynamic Method)
Best for:
-
Blog posts
-
Service pages
-
Automatic schema on multiple pages
Steps:
-
Go to Appearance → Theme File Editor
-
Open functions.php
-
Add schema logic inside the file
-
Save changes
Schema will auto-load based on page type
METHOD 5: Add Schema Using Page Templates
Best for:
-
Service pages
-
Landing pages
-
Custom layouts
Steps:
-
Create or edit a custom page template
-
Add schema markup inside that template
-
Assign that template to selected pages
-
Save & update
Schema applies only to pages using that template
METHOD 6: Add Schema Using Theme Hooks (Advanced)
Best for:
-
Lightweight websites
-
Performance-focused setups
Steps:
-
Identify hooks provided by your theme (Astra, GeneratePress, etc.)
-
Insert schema via hook location
-
Save changes
No template editing required
METHOD 7: Add Schema Using Google Tag Manager (No WordPress Plugin)
Best for:
-
Large websites
-
SEO teams
-
Central control
Steps:
-
Login to Google Tag Manager
-
Create a New Tag
-
Choose Custom HTML
-
Paste schema markup
-
Set trigger to All Pages or Specific Pages
-
Publish container
WordPress remains untouched


