• Hi there,

    I have searched all over for a solution to this problem, and have surprisingly come up short in finding the answer. I am trying to add Adsense to my blog directly below the header image and above the posts. I have the snippet, and if someone could help me out and tell me where exactly I need to place it in the code, it would be much appreciated. Thank you, have a great holiday!

    David

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey David,

    You should be able to place your snippit just before the Loop
    and after the call to the header. This is usually in the index.php page of your theme pack. Ex. shown below

    <?php get_header(); ?>
    <!--YOUR SNIPPIT SHOULD GO HERE--->Snippit
         ?php if (have_posts()) : ?>
    
    	<?php while (have_posts()) : the_post(); ?>

    Hope this helps

    Warmest Regards,

    Magick

    Thread Starter eyesicksun

    (@eyesicksun)

    Magick,

    Thank you very much for your help! I was able to get the snippet implemented, but am now running into a little problem. I would like the Adsense to be placed right under the site’s header, but it is pushed all the way to the left margin. I’m assuming it’s a quick fix, I’m just not quite sure what I have to add.

    Also, I have one more related question that I don’t know if you can help me with; I have had the blog for quite some time now (www.indiemuse.com), and haven’t wanted to put any form of advertisement on the site, thus far. I decided to add it as a trial to see if I can help out with the finances of maintaining the site (domain, hosting, etc), but would like to incorporate a “why advertisements” link to the right hand side of the Adsense links so I can make a page that quickly explains why they are there (much like Amazon does). Do you know how I would be able to easily do this? Thank you again for your help!

    Best,
    David

    Is https://www.indiemuse.com the address for the page with the adsense, If it is not please post the site that the snippet is supposed to go, I will take a look at the source code and get a quick visual on the setup of your page.

    Warmest Regards,

    Magick

    Thread Starter eyesicksun

    (@eyesicksun)

    Hi Magick,

    Yep, Indiemuse.com is the site that the snippet is going on. I plan on putting the link unit in the little space between the header and first post. I took it down until I could figure out how to get it positioned correctly towards the center. Thanks again!

    Best,
    David

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding Adsense Directly Below Header Image’ is closed to new replies.