Web

How to Insert Google AdSense Code on Website without Plugin

This trick is not only for Adsense publishers you may this trick put any advertisement like Yahoo, Bidvertiser, Clicksor,Chitika,Kontera and Infolinks code  to your website.Day to day number of Advertise networks increasing and also publishers also increasing because advertise on online via display website ads this is best method to advertise and developing their company.

Today’s No:1 Online Advertising Company is Google so who have the website those are apply Google Adsense account to become Adsense Publisher.To getting Google adsense account now some what hard to publishers because Google newly updated Terms and Conditions it’s not google filtering Publishers ,Google encouraging the good publishers .

google adsense logo

Placing Google Adsense code  on perfect location of your website that will be increase your Impressions and Earnings.Putting the Ad to post or anywhere in your website without plugin this is best idea to place your Ads any where in your blog.For WordPress Plugin developers using this trick and developing the plugin, some times if in your website have more plugin that sometime causes some issue in your blog.And also more plugin will be decrease your website loading time.

For this trick really helpful for Google Adsense Publishers and Yahoo Ad Publishers, just  follow bellow steps to put adsense and html code to your wesbsite theme.Most of newbies searching in Internet how to place Google adsense code to my blog without plugin.For this Doubt below having the solutions.

Step 1

After Login WordPress Dashboard choose to click Appearance and select Editor.

wordpress theme editor

Step 2

After you select theme editor options you can see “single-post.php” or in some theme name will different like “content-single.php”.

Step 3

Then edit “single-post.php” you can see “<?php the_content(); ?>” after this code press enter come to blank line put following code to that blank line.

Step 4

  • Put Adsense code left side of post, Replace bellow sample adsense code with your adsense code.
<div style="display:block;float:left;margin: 5px;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1234567890000000";
/* square */
google_ad_slot = "123456789";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

Step 5

Click the “Update File” button.

Important Note

  • Put Adsense code right side of post, Replace bellow sample adsense code with your adsense code. This trick uses display ads on where ever place code with simple changes
<div style="display:block;float:right;margin: 5px;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1234567890000000";
/* square */
google_ad_slot = "123456789";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
  • Put Adsense code center of post, without any plugin on your website.
<div style="display:block;float:center;margin: 5px;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1234567890000000";
/* square */
google_ad_slot = "123456789";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

3 Comments

  1. Hi Parthee, Thanks for sharing such an useful information. Your post seems to be a great tutorial for those who wants place adsense on their blog.

  2. bharathi Reply

    Hi guys are you searching google adsense for your websites , blogspot , wordpress websites Google Adsense Approval Tricks

  3. Harpreet Kumar Reply

    nice tips u provides sir. thanks its really helped me a lot

Write A Comment

Pin It