Hostgator offers support, even for your blog. Other hosts consder blogging software as third party software.
Get Hostgator and Great Support - Click Here!
If you want people to actually see your contextual ads (and thus be more likely to click on an ad of something of interest), you need to avoid ad blindness. Ad blindness is where people are so used to seeing an ad at the top of your page or on the sidebar that they consciously or unconsciously tune out to the ad.
So here is how you avoid it: Place a HUGE 500 wide by 250 high block of Google AdSense that is in the middle of your post/page. This is accomplished by using two 250×250 text ads side by side in a table, as shown in the screen shot below.
The drawback of this, however, is that on blog posts, you are limited to only 1 post displayed at a time since if you display 2 or more, you violate Google’s terms that limit the number of ad units displayed to 3. (Each block contains two ad units) You can, however, use this display on pages of your WordPress blog or on standalone pages of a website. Also, you can use this method on a Blogspot blog pages (as opposed to posts) since only 1 is displayed at a time.
Here is how you do this:
- Set up code on Google AdSense for a 250×250 text ad that matches your site colors.
- Set up a channel on Google for your new ads so you can track results.
- Copy the code Google provides and paste it into the code shown in this file after you save the file to your computer first.
- Copy the code of the text file with your ad code inserted into your blog page or post approximately in the middle of your page or post. Note that you will need a blog text body area of at least 500 pixels to do this – otherwise the larger table might distort your blog. Note that there is a better way to include this code – use what is called a server-side include. See below.
Using a Server-Side Include
One problem with simply pasting in the code for the table containing two Google AdSense ads is that sometime down the line you might change your blog template and font colors. Then, all your Google Ads will not match and you will have to switch them out, one by one. Or, perhaps you want to try some ad other than AdSense for a short time – again, you will have to replace code on all your pages, one at a time! If you have a hundred such tables, that is a lot of work! The solution to this is to use a Server Side Include to input the contents of a file into your page. This way, if you need to change the ad code, you only have to change it on ONE file, not 100+ files! One file changed produces changes on all the pages it is loaded onto. Here is how you do it:
On a WordPress Blog
- Install the plugin Include It. To do this, simply search for “Include It” as a plugin and it will be the top result you find.
- Save the code you created for the ads as a text file called adcode.txt (or whatever you want to name it). To save as a text file, use wordpad, notepad, or an html editor.
- Upload your text file to the root directory of your hosted site using your hosting control panel or some ftp tool. The root directory will be the same location as where your index.php file is located. Coreftp.com is a good free tool if you want to give this a try, but your hosting control panel will work as well.
- Insert the code shown below wherever you want the code to be inserted.

On a Non-Blog HTML Website
- Save the code you created for the ads as a text file called adcode.txt (or whatever you want to name it).
- Upload your text file to the root directory of your hosted site using your hosting control panel or some ftp tool like Coreftp.com. The root directory will be the same location as where your index.html file is located.
- Insert the code shown below wherever you want the code to be inserted in the same folder as where the page resides.

- Insert the code shown below if your page resides in some sub-folder or sub-directory.

Need Help? Have Questions? Email Me!
{ 2 comments }


