Saturday, July 9, 2011

REMOVING THE COMMENT TAGS

Another way is to remove the comment tags completely, which was the method I used for Internet Tips and Tricks. In this case, from the code

#main { float: left; width: 440px; margin: 5px; padding: 0px 5px 0px 0px;

this shows the width of the main column is only 440 pixels wide. So this time I chose the 250x250 Square format. The method is exactly the same as above, but instead of replacing Replace with , I just removed the comment tags completely, so that what I have is as shown below (with the

to emphasise where the script should be placed):







As usual, preview, and if satisfied, click "Save template".

Note: AdSense only allow 3 AdSense for Content units per page. So if you incorporate the unit into the post, theoretically, you will have one AdSense units in each post. So if you have the default 7 posts for the main page, you will have 7 AdSense units in each posts plus any other Ad units in the sidebar/s and/or footer and/or Header. AdSense suppresses any excess units so that only the first 3 units (which 3 depends on your template) are displayed. For most of my blogs, only the first 3 units in the first 3 posts will get displayed and if I have skyscraper unit in my sidebar and leaderboard unit in the footer, these plus the ad units in the rest of the posts will be suppressed. It is only when you are in an individual post page (permalink) where there is only one post that the skyscraper unit in the sidebar and the leaderboard unit in the footer plus that one unit in the post get displayed. I have tried this once for one blog and asked AdSense Support if it is OK and their response was that it is OK for THAT blog. They left the question about applying the same thing to other blogs hanging, so one doesn't know if we have to ask each time we apply the same thing to other blogs.

If you want to be safe, you may want to set the main page to display less posts in the main page, etc., or write to AdSense Support for clarifications.

Acknowledgement: The idea of using

was obtained from Wrap text around Google AdSense but was modified and an alternative way was presented. Further, she used an image to display the HTML which means you can't copy the HTML direct from the site. I use special codes to display the HTML characters so that you can copy the HTML direct from this site to use for your hack.Any problems, please comment in the post. One reader has complained about confusing l (L) with 1 (one). This has been clarified with a note right at the top of the post. He also commented on some problems with the table tags. I have retested the method described here in Generating Revenue from your Website, and for the table tags, I just use copy-paste from the script in the scroll box above. The method worked perfectly, so there is NO PROBLEM with the table tags.



No comments:

Post a Comment