1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adsense to top of site? with WP

Discussion in 'Black Hat SEO' started by slipday1, Nov 21, 2012.

  1. slipday1

    slipday1 BANNED BANNED

    Joined:
    Mar 15, 2012
    Messages:
    112
    Likes Received:
    4
    Hey guys is it possible for me to add an adsense ad above the website its sounds strange but if you look here http://www.howtogeek.com you will see what i mean at the top of the page, also does anyone no how i can add it just below the menu bar? Im not too good with PHP so its mega confusing me.

    Thanks for help in advance.
     
  2. WebDev

    WebDev Regular Member

    Joined:
    Oct 31, 2010
    Messages:
    384
    Likes Received:
    484
    Gender:
    Male
    Location:
    UK

    I've actually managed that by accident several times - happens when you manually place the banner code in the wrong place

    If you're using wordpress, this may do the job: maxblogpress.com/plugins/msa/
     
  3. Scritty

    Scritty Elite Member Premium Member

    Joined:
    May 1, 2010
    Messages:
    2,807
    Likes Received:
    4,496
    Occupation:
    Affiliate Marketer
    Location:
    UK
    Home Page:
    Yes - I've used artisteer to make websites like that (wordpress sites) it's pretty simple.

    Scritty
     
  4. slipday1

    slipday1 BANNED BANNED

    Joined:
    Mar 15, 2012
    Messages:
    112
    Likes Received:
    4
    Doesnt seem to work with adsense although i could be doing it wrong im guessing there is no way to paste it in with the PHP code?

    Thanks
     
  5. WebDev

    WebDev Regular Member

    Joined:
    Oct 31, 2010
    Messages:
    384
    Likes Received:
    484
    Gender:
    Male
    Location:
    UK

    I would have thought it would work OK with adsense code - but it may be an issue with the size of the google ad block being larger than a single line of text

    May work with those adsense link text ads

    If you want to experiment, just paste above the correct <div> until you find the right spot

    You could also look at the maxblogpress plugin to see how they do it - you don't need php skills - you are only looking at inserting adsense code in the appropriate spot in pre-existing code
     
    • Thanks Thanks x 1
  6. WebDev

    WebDev Regular Member

    Joined:
    Oct 31, 2010
    Messages:
    384
    Likes Received:
    484
    Gender:
    Male
    Location:
    UK
    This is from their site's source code

    See, the ad code is placed before the header <div> - easy peasy!


    </head>
    <body class='v3' >
    <center id="top728ad" style="height:90px">
    <!-- tmnp.howtogeek 728x90 ATF -->
    <div id='div-gpt-ad-1342044737928-2'>
    <script type='text/javascript'>
    googletag.cmd.push(function() { googletag.display('div-gpt-ad-1342044737928-2'); });
    </script>
    </div>
    </center>
    <div id="doc4" class="yui-t7">
    <div id="hd"></div>
    <div id="bd">
    <div id='htgHeader'>
    <div class="topBar">
    <div class="topBarLeft">
    <ul class="htgTopBarLeftLinks">
    <li><a href="/">HOW-TO</a></li>
    <li><a href="/news/">NEWS</a></li>
    <li><a href="/forum/">FORUMS</a></li>
    <li><a href="/store/" title="Get our Keyboard ***** T-Shirt" target="_top">GEEKY T-SHIRTS</a></li>
    </ul>
     
    • Thanks Thanks x 1
  7. slipday1

    slipday1 BANNED BANNED

    Joined:
    Mar 15, 2012
    Messages:
    112
    Likes Received:
    4
    thanks a lot.
     
  8. slipday1

    slipday1 BANNED BANNED

    Joined:
    Mar 15, 2012
    Messages:
    112
    Likes Received:
    4
    balls it worked but i need to center it >.< anyone know how to do this?

    Thanks!!
     
  9. johandr

    johandr Regular Member

    Joined:
    Feb 17, 2011
    Messages:
    485
    Likes Received:
    403
    Occupation:
    Internet Marketing
    Location:
    Netherlands
    use <center>ADSENSE CODE</center> arround it
     
    • Thanks Thanks x 1
  10. slipday1

    slipday1 BANNED BANNED

    Joined:
    Mar 15, 2012
    Messages:
    112
    Likes Received:
    4
    your both awesome thanks a bunch!!
     
  11. DisguiseMarketing

    DisguiseMarketing Junior Member

    Joined:
    May 17, 2011
    Messages:
    121
    Likes Received:
    18
    hilarious...i JUST figured this out 30 minutes ago before i saw this thread. i so ready to help you :)