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

How do I get an adsense block ABOVE my posts?

Discussion in 'Blogging' started by mollah, Apr 8, 2009.

  1. mollah

    mollah Power Member

    Joined:
    Feb 11, 2009
    Messages:
    674
    Likes Received:
    548
    I have all in one adsense and ypn which is cool cuz it lets you randomly distribute ads throughout your pages/posts, but I also would like to add one static ad in the following locations:

    - at the top of the most recent post on the main page
    - at the top of each "page" (wp "pages")


    What adsense plugin do I need for that??

    I'd like to have one ad statically there, and have my other 2 adsense blocks randomly inserted using all in one adsense ypn. Is that possible? Can you use two different adsense plugins at the same time?


    Here's a pic illustrating what I'm talking about:

    [​IMG]


    Thanks.

    PS. now that you've seen my mad art skills, if anyone ever wants to play i-sketch.net just let me know :D
     
  2. Hoops4me

    Hoops4me Junior Member

    Joined:
    Jan 24, 2008
    Messages:
    105
    Likes Received:
    275
    Occupation:
    Day Trader
    Location:
    Tar Heel heaven
    It is actually pretty easy to do. Just go to page set up and ad adsense on to the main part of the page. Then just click and drag the adsense box to the top of the layout. Save it and you should be done.
     
  3. spankythepyro

    spankythepyro Power Member

    Joined:
    Mar 7, 2009
    Messages:
    572
    Likes Received:
    94
    you could hard code it into your template...go to your single.php, page.php and google inserting adsense into wordpress blog, you'll be able to find a way to put it in there
     
  4. mollah

    mollah Power Member

    Joined:
    Feb 11, 2009
    Messages:
    674
    Likes Received:
    548
    Is that a standard wp feature? I don't know what menu that would be done from.
     
  5. platinvm

    platinvm Senior Member

    Joined:
    Jan 31, 2009
    Messages:
    1,042
    Likes Received:
    384
    Location:
    TN
    Lovin the picture! you need a adsense plugin, just go to Wordpress.com and go to plugin's and search "adsense."
     
  6. antsaoo

    antsaoo Supreme Member

    Joined:
    Oct 1, 2008
    Messages:
    1,291
    Likes Received:
    637
    whydo work adsense is best IMO,<3 should be found here atleast :p
     
  7. mollah

    mollah Power Member

    Joined:
    Feb 11, 2009
    Messages:
    674
    Likes Received:
    548
    :D
    The first line in my post was "I have all in one adsense and ypn" which is an adsense plugin. It allows you to randomly distribute ads within posts but not above them, that's why I was asking specifically which plugin allowed you to do that and if there was a problem running two adsense plugins together.

    Sorry for any confusion.
     
  8. platinvm

    platinvm Senior Member

    Joined:
    Jan 31, 2009
    Messages:
    1,042
    Likes Received:
    384
    Location:
    TN
    Sorry about that, I'm kinda having the same problem to, because all of my blogs have the adsense right there by default. Now I'm making a new blog and can't figure out which plugin is putting the adsense there.
     
  9. arikfloyd

    arikfloyd Newbie

    Joined:
    Mar 23, 2009
    Messages:
    37
    Likes Received:
    6
    all in one adsense and ypn take % from your profits !!!
     
  10. mollah

    mollah Power Member

    Joined:
    Feb 11, 2009
    Messages:
    674
    Likes Received:
    548
    I set it to share 0%
     
  11. arikfloyd

    arikfloyd Newbie

    Joined:
    Mar 23, 2009
    Messages:
    37
    Likes Received:
    6
    how can i do it also ?
     
  12. mollah

    mollah Power Member

    Joined:
    Feb 11, 2009
    Messages:
    674
    Likes Received:
    548
    on the settings page near the bottom there's a box that says something like "what percentage of your income do you want to share" or something. I changed mine to zero.
     
  13. mollah

    mollah Power Member

    Joined:
    Feb 11, 2009
    Messages:
    674
    Likes Received:
    548
    also, bump for answer.
     
  14. spankythepyro

    spankythepyro Power Member

    Joined:
    Mar 7, 2009
    Messages:
    572
    Likes Received:
    94
    if you guys want me to show you how to edit .php for adsense upload your index.php file and your single.php file for your theme and I'll show you where and what to edit.

    Also if you have anything in the code that could reveal your adsense pub-id please remove it for your own security
     
  15. Matter

    Matter Newbie

    Joined:
    Mar 16, 2009
    Messages:
    28
    Likes Received:
    10
    mollah, take a look at the Prosense wp theme. It's a good example how to include static ad blocks, you can just copy & paste from it and use one of the blocks together with the all-in-one plugin.
     
  16. spankythepyro

    spankythepyro Power Member

    Joined:
    Mar 7, 2009
    Messages:
    572
    Likes Received:
    94
    yea prosense is like insteritng for dummies though, you can further customize adsense by learning to do actualy hardcoding instead of pseudohardcode
     
  17. Matter

    Matter Newbie

    Joined:
    Mar 16, 2009
    Messages:
    28
    Likes Received:
    10

    I'm not sure what you mean with 'pseudohardcode'. They put adsense code in seperate php files and then include() it in single.php, sitebar.php and so on. Looks to me like a clean and efficient way to do it, are there any disadvantages?
     
  18. spankythepyro

    spankythepyro Power Member

    Joined:
    Mar 7, 2009
    Messages:
    572
    Likes Received:
    94
    having to call a function, just adds some extra processing that goes on altho it does make the following files a litte "prettier"

    You can easily add adsense into the archives.php, index, page, single files
     
  19. mollah

    mollah Power Member

    Joined:
    Feb 11, 2009
    Messages:
    674
    Likes Received:
    548
    Sorry you guys are confusing me.

    Is there a plugin where I can select to have a block of adsense code placed above the first post on the home page, and also above each page (what WP refers to as "pages")?

    If I have to hardcode it in, then I have two issues: 1) how do I get it above the post/page title, and 2) I don't want to have to do that manually for ever future "page" I add.
     
  20. spankythepyro

    spankythepyro Power Member

    Joined:
    Mar 7, 2009
    Messages:
    572
    Likes Received:
    94
    you won't have to add it manually for every future page you ad, it will be within the page code.

    load me up your single.php file and i'll show you where to add you adsense so it comes up above the post