If you want to display Adsense ads inside post content in your WordPress blog there are numerous plugins available out there which will automatically do the same for you. But if you do not want to add more plugin to your blog’s plugin list, the reason might be any of the following: you do not want to overload your blog with plugins or you do not trust third party plugins. Here is a simple manual way by which you can easily insert ads anywhere in the post content.
First, you have to add the following code to your blog theme’s function.php file.
Don’t forget to replace the adsense code with your’s. And be careful, place this code before ‘?>‘ do not make any mistake otherwise this can make you blog stop working.
Once you saved the functions.php file after adding this code, you can now embed the adsense code anywhere in the post content. To do so simply add the following code on the editor, in html mode.
If you enjoyed this article, please consider sharing it!