πΉ Method 1: Using a Plugin (Recommended β Easy & Safe)
Best plugins:
- Site Kit by Google
- Ad Inserter
Steps:
- Go to WordPress Dashboard β Plugins β Add New
- Search for Site Kit by Google
- Install & Activate
- Connect your Google account
- Link your AdSense account
- Turn ON Auto Ads
β Done! Ads will start appearing automatically.
πΉ Method 2: Add AdSense Code Manually (Without Plugin)
Step-by-step:
- Login to your AdSense account
- Go to Ads β Get Code
- Copy the AdSense script code
Now go to WordPress:
- Navigate to:
Appearance β Theme File Editor - Open the file: header.php
- Paste the AdSense code just before
</head> - Click Update File
β οΈ Important:
- If you update/change your theme, this code may be lost
- Always backup before editing
πΉ Method 3: Using βCustom HTML Widgetβ
Good for placing ads in sidebar, footer, or inside posts
Steps:
- Go to Appearance β Widgets
- Add a Custom HTML block
- Paste your AdSense ad unit code
- Save
πΉ Method 4: Using Gutenberg Editor (Inside Posts)
- Edit any post/page
- Add block β Custom HTML
- Paste AdSense ad code
- Update post
π‘ Pro Tips
- Use Auto Ads if you’re beginner
- Use Ad Inserter plugin for full control (ads between paragraphs, etc.)
- Make sure your site is:
- Approved by AdSense
- Has privacy policy & good content
π¨ Common Issues
- Ads not showing? β Wait 24β48 hours
- Check if your site is approved
- Disable AdBlock while testing