How to Insert Google Adsense Verification Code

When you are applying for a Google Adsense account, you are required to add an HTML code to your website for verification purposes.

The easiest method is to just copy and paste Google’s verification code to the blog theme’s header.php file.

Here’s how to do it:

1 On your WordPress dashboard, go to “Appearance” then click “Editor“. You will be redirected to the “Edit Themes” page.

editor link

2 On the right side (under Templates), look for Header (header.php).

headerphp

Tip: If you’re using Firefox or Chrome, use the find tool to quickly locate the header file especially if the theme has lots of PHP files. On your keyboard press Ctrl + F then type header.php

findtool

3 Click on Header (header.php).

headerphp

4 Find <*/head> (without the asterisk), the HTML end tag for header. Again, use the Find tool to quickly find it.

headerendtag

5 Now, insert your Google adsense verification code just above the header end tag.

verificationcode

6 Click the “Update File” button to save your changes.

updatefile

7 That’s it! This method applies to any WordPress theme, not just premadeniches.

You May Also Like