Being one of the best Contextual Advertisement programs on earth, people have asked me how to add Google Adsense to WordPress for the first time. This is after writing a step by step guide on how to create and apply for the AdSense Account. As a beginner, Google AdSense should be your first priority to monetize your blog or any WordPress website.
Although there are many other pretty alternatives to AdSense, you will hear experts say that AdSense is the best program.
Before applying for the AdSense, make sure your website complies with the AdSense policies and that you must be at least 18 years.
It’s also important to make sure your blog or website has sufficient content, many beginners get disapproved for insufficient content. On my article on how to create an AdSense Account, I recommended the number of posts you should have before applying and the content needed. Make sure you see that guide.
When properly implemented AdSense can convert traffic into a huge amount of money. Please see my guide on how to place Google AdSense on WordPress to maximize payment.
Under this article, I am going to demonstrate a step by step guide on how to paste the AdSense Application code in between the head tags of your WordPress website or blog for the AdSense approval process.
We shall use two methods to add AdSense Approval code to WordPress Website
- Using the WordPress Dashboard
- Using the Manual Method (CPANEL)
Please note, I don’t recommend people to use plugins for something that can be achieved within a blink of an eye. Please follow this guide to the end.
How to Add Google Adsense Code to WordPress Website, Through WordPress Dashboard
First, I will recommend you to watch the following video, as it shows step by step on how to apply google Adsense on a WordPress website.
You may also like:
- Blogging niches and topics that will never fail you
- Can’t Find Adsense Verification Code in the Adsense Home Page
The following are instructions on how to paste Adsense application code into your WordPress Website.
- First, login into WordPress dashboard
- While on the dashboard, hover the appearance
- Click on the editor
- On the editor section, search for the “the header”, click it
- Assuming you are on the header code, CTRL F from your keyboard to find </head>
- Paste your AdSense verification code, just above the </head> tag
- Update the file
See the snippet code below
<head> <title></title> <!-- meta tags, scripts, and CSS --> <!-- AdSense code here --> </head> <body> </body>
How to Add Google AdSense Code Manually Through the CPANEL to WordPress Website
Some WordPress Themes do not give much freedom when it comes to editing the code via the WordPress dashboard editor. If you can’t see the header file from your dashboard, this part is for you.
This is how to paste the AdSense code to your WordPress website through the Cpanel:
- Login to your Cpanel Account
- Depending on the version of the CPanel you are using, click on the File Manager > Public_Html to access your website root files.
- Navigate to wp-content folder > themes > the name of your theme folder ( e.g XY if your theme name is XY) > header.php
- Right-click on your header.php file then edit. Ctrl + F to find </head>,
- Finally, paste your AdSense code just above the </head> tag as shown in the image below
No further action will be required from your side. The AdSense team will email the status of your application within a week or so.
My name is Benson Karue, I was Software Engineer Telenet Co LTD before I quit and joined YouTube and Udemy as an instructor. I have real-world software experience and have a Bachelor’s degree in Mathematics and Computer Science with 6+ years of coding experience and winning several competitions and coding challenges.