I am trying to display my Google adsense banner above the Title of every blog page but with my node.tpl.php I can only get it just below the title.
Here is what I have in my node.tpl.php:
-----------------------------------------

print adsense_display('468x60');
if ($sticky) { print " sticky"; } if (!$status) { print " node-unpublished"; } ">

etc..........

------------------------------------------

Which displays like:

Title of Node
-------------------------
Google Add
-------------------------
Content

What I would like is to display like this:

----------------------------------------------
Google Add
----------------------------------------------
Title of Node
Content

Is this possible?

Thanks

Comments

DrupalBone’s picture

you want it above the node title, but below the site name? If that is the case then you shouldn't edit the template, but should just put your adsense code in a block set to the header region, and put in the wildcard so that it will only show up on blog pages.

You could probably also use the adsense module to simplify some other things for yourself.

r00tk1ll’s picture

If you look at my site I have a nav bar that I dont want to alter, I just want it directly under it, take a look..

http://www.beyondthebit.com

DrupalBone’s picture

The block region you would use is "content top", unless I'm really confused and you want an ad bar that will go the full width of the screen above both the content title and your two sidebars but below your navbar.

In that case the region you would put the block in is "navigation bar" with a heavier weight, and then use css to change the style of its background behind it.

r00tk1ll’s picture

Genius!
That is exactly what I wanted, I cant believe I didn't remember that was there.

Thanks Man

DrupalBone’s picture

It's actually helping me understand Drupal better to answer these questions.