I upgraded to Drupal 6.1, but none of the adsense modules work with 6.1

Is there a way i can manually add this html to the header or footer of the site? If so how?

Comments

end user’s picture

I think all you have to do it just insert the code into page.tpl.php. Insert it whereever you want the google code to appear in the template.

mustardman’s picture

There are at least 2 problems doing that. One is you don't get section targeting so google reads the whole page which may be irrelevant to the section the ad is in. Two, you can't insert ads into the content. I managed to hack in the code to show up at the top of my content pages but I haven't been able to get Ads into content with the words wrapped around it. I got about 75% there hacking code into my page.tpl.php file and messing around with style.css but couldn't get it to work 100% on all pages. Kinda sucks as I am losing money and can't code to save my life.

I'm starting to regret my decision to start my site with Drupal 6.x over 5.x and might even switch to Wordpress which seems more congruent when it comes to adding stuff. I naively thought the rich selection of add on modules would mostly all work on 6.x