This article of Geeabo teaches you about the Smarter Way to Add Adsense Code To Your WordPress Blog.
Friends, Instead of copying the ads code and paste it into your WordPress blog is quite traditional method in my opinion. :).
Here one good news for you that this method alsoworks in almost all ads network. Such as –
- Google Adsense,
- Chitika, etc.
So, today I want to discuss about the easiest and the Smarter Way to Add Adsense Code to Your WordPress Blog.
Now after reading this article, you will forget about the copying the ads code and pasting it into your WordPress blog again and again.
In the previous article, I have already written about the Best Adsense Alternatives. You may go through the link to read that article.
There is a lot of ways to earn money online but the Google Adsense is considered as best way.
So, without making this article too long and confusing, Lets get started. 🙂
Smarter Way To Add Adsense Code To Your WordPress Blog
Follow the steps very carefully to add Adsense Code to your WordPress website.
#1. Login to your WordPress Dashboard.
#2. Now go to Appearance and click on the Editor option.
#3. Here, find Theme Function or function.php page. Friends, almost all the WordPress theme have the Theme Function page regardless of the theme that you using. So, simply open it up.
#4. Now scroll down and go to the bottom of the function.php page and press enter button to create some space for code.
#5. Now create a function to appear the ads on your blog.
How to create function?
function firstAdFunction ( )
#6. Under the (return ‘…’) single inverted commas, paste the ads code.
#7. And now click on the Update File button.
#8. Now remember that what you written in the last ( add_shortcode(‘AppearHere‘, ‘firstAdFunction’); ) line.
#9. Now go to All Posts, open an existing post or Add New post.
#10. And here simply write, that you written in the first single inverted commas of the last line of short code that is “AppearHere” under the square brackets.
Like this [AppearHere]. And at last, click on Update.
So, this was the process to Add Adsense Code To Your WordPress Blog.
If you have any question or suggestion regarding this article, feel free to ask me in the Comment box below. I feel very happy after helping you.
Thanks for your visit and I hope you will come again.
Founder of Geeabo and Managing Editor. He began blogging in 2017.
In the Geeabo community you receive a new article everyday. Where I tell you some important things about the world of Technology, Inspirational, How to, etc.