Adsense Below Header on Homepage

Posted in: Newspaper
Post count: 96

How to have Adsense just below header and top navigation on homepage and category pages only?

Here is the example: http://www.screencast.com/t/kM0zY3rN

Post count: 6600

Hi,

Add your Adsense code to Custom Ad 1 and then add this code: http://pastebin.com/NdhJZPzd to category.php file like this: http://screencast.com/t/lEldbqcA

For Homepage add the same code to index.php file like this: http://screencast.com/t/co4lWoWfr9W

To center it add this custom CSS in Theme Panel -> Custom CSS:

.top-ad .td-g-rec {
margin-left: auto;
margin-right: auto;
display: table;
}

Thanks

Post count: 96

It works just perfect

Thanks a lot… 🙂

Post count: 8

Trying to put adsense ads below main navigation bar as well on “all pages and posts”.

Will this also work?

If yes, where can I find Custom Ad 1?

Also, your screenshots on here seems to not work anymore.

Thanks in advance!

  • This reply was modified 8 years by meming.
Post count: 20685

Hi,


@meming
There are header styles that display the ad below the main menu
https://forum.tagdiv.com/header-styles/
You could choose one of those header styles and the ad will be displayed as you want.

Thanks

Post count: 8

Thanks Simion! I added my adsense code to the Ads section on the theme panel to show up on the header but for some reason it’s not showing as you can see here: http://queencitycebu.com/cebu-named-2nd-best-island-world-according-300000-travelers/

Could it be because I’m using Quick Adsense as well to insert adsense ads on the site?

Post count: 20685

Hi,

The banner is loaded but it seems the image used is transparent
http://queencitycebu.com/wp-content/uploads/2016/10/rec-post-blank.png
It is there but simply not visible. Also it seems there is no link address present, it is not directing anywhere
https://www.screencast.com/t/jVcmailAcVR7
Please check the configuration of the code, set a valid link and image and it should appear properly.

Thanks

Post count: 8

@simion Sorry I think there is a confusion.

I am trying to put an adsense ad below the header navigation not an image.

I have already put the adsense code like so:

http://tinypic.com/r/vsnuao/9

Post count: 23312

Hello meming,

Most likely, your Adsense code is not working good, sorry! I suggest you contact the Google Adsense Department, tell the problem because they should be able to provide a more accurate response. Try to add another Adsense or an image created by you and check the problem is the Ad Code or is the Spot Ad. Also, if the problem is still there after this, you should send us an email at contact@tagdiv.com with your log-in information so I can take a closer look at your setup page and also, so I can try with another Adsense code.

Thanks for the message!

Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.