stupid wp and adsense question

16 replies
  • SEO
  • |
I've been using adsense on my sites, pasting the code into an html widget that shows on the right side.
I'm disappointed in my results, and I've noticed several people in their posts have talked about having ads at the top of the page, below the header image.
Uh,.... how do you do that?
Specifically, I'm talking about blogs built with wordpress.
Thx.
JP
#adsense #question #stupid
  • Profile picture of the author listermint
    From your adsense CP go to My ads tab and from there you'll be able to generate the code. Select patterns, preview them and you'll find it. Then copy and paste the code.
    Signature

    I Eat Grass :) :) ;)

    {{ DiscussionBoard.errors[2854456].message }}
    • Profile picture of the author deloriagod
      Go to your admin panel and select Appearance -> Editor then find the template for your single page or post (whichever you're using). Create a new ad and copy that code. Look through your post/page template and find the part of the code that grabs the post/page title and past the code above that. If you want the code at the bottom then scroll down until you find something that looks similar to this:

      <?php get_sidebar(); ?>
      </div>
      <?php get_footer(); ?>

      That's the code to get the sidebar and footer. In most of the themes I've worked with, you can go up 2-3 lines (which are normally blank) and you'll find </div>. Hit enter to drop that div down one line and paste your Adsense ad code where that div used to be. (Div's are magical invisible boxes. You want the ad neatly below the page's content, you need to keep it in that div or create a new one and tell it where to go via the style.css file).
      Signature
      {{ DiscussionBoard.errors[2854514].message }}
      • Profile picture of the author jonrpatrick
        You are "The Man".
        I've poked around in those .php's but am certainly no expert. Thanks.
        Signature
        TrimDown Global
        Weight Loss Affiliate program, pays to 3rd level, FREE to Join, No Autoship! Now in Pre-Launch!
        {{ DiscussionBoard.errors[2854529].message }}
        • Profile picture of the author deloriagod
          Originally Posted by jonrpatrick View Post

          You are "The Man".
          I've poked around in those .php's but am certainly no expert. Thanks.
          Thank Jon. I'm no expert either, I just play around with the files more and more every day so I learn some useful things here and there
          Signature
          {{ DiscussionBoard.errors[2854909].message }}
  • Profile picture of the author TheGrooby
    You can also paste the code directly into your Wordpress post/page content area when writing your content. Make sure you have the "HTML" tab activated, not the "Visual", and paste the Adsense code. Then you can have your H1, content, etc... Or, paste the Adsense code at the bottom of that box below your written content.
    {{ DiscussionBoard.errors[2854650].message }}
  • Profile picture of the author gittar1122
    If you want to add Adsense unit below header image, you have to edit your WP theme. Deloriagod explained it in a good manner

    Go to your admin panel and select Appearance -> Editor then find the template for your single page or post (whichever you're using). Create a new ad and copy that code. Look through your post/page template and find the part of the code that grabs the post/page title and past the code above that. If you want the code at the bottom then scroll down until you find something that looks similar to this:

    <?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>

    That's the code to get the sidebar and footer. In most of the themes I've worked with, you can go up 2-3 lines (which are normally blank) and you'll find </div>. Hit enter to drop that div down one line and paste your Adsense ad code where that div used to be. (Div's are magical invisible boxes. You want the ad neatly below the page's content, you need to keep it in that div or create a new one and tell it where to go via the style.css file).
    {{ DiscussionBoard.errors[2854753].message }}
  • Profile picture of the author jonrpatrick
    funny you say that. Several times I think I've "figured it out" - whether it's blogging, adsense, MLM, etc....
    Each and EVERY time it means I'm about to find out how little I truly know and am about to have a major opportunity to grow.
    I look back at what I did a year ago and I just laugh.... think I 'figured it out', set up a blog on a popular keyword ENTIRELY confident I'll be #1 in google... and this time can't even get Google to rank it at all.
    :0
    Signature
    TrimDown Global
    Weight Loss Affiliate program, pays to 3rd level, FREE to Join, No Autoship! Now in Pre-Launch!
    {{ DiscussionBoard.errors[2854953].message }}
    • Profile picture of the author Amy Harrop
      It might be easier to use a widget so you don't have to go in and edit code. There are several free wordpress plugins that allow you to paste your code in the widget and you can specify top middle or end of post. It will then go on all of your posts, and you can also specify pages. I've found that to be an easier approach then messing around in the code.

      In your Wordpress admin just do a plugin search for adsense and you will find different ones. I like Adsense Redux.
      {{ DiscussionBoard.errors[2855349].message }}
      • Profile picture of the author deloriagod
        Originally Posted by Amy Harrop View Post

        It might be easier to use a widget so you don't have to go in and edit code. There are several free wordpress plugins that allow you to paste your code in the widget and you can specify top middle or end of post. It will then go on all of your posts, and you can also specify pages. I've found that to be an easier approach then messing around in the code.

        In your Wordpress admin just do a plugin search for adsense and you will find different ones. I like Adsense Redux.
        With a little practice, the coding for WP themes is usually pretty easy to read. But if you want a difficult one, go take a look at the coding for 2010 Weaver theme. So many editable options, that theme is a mess of code
        Signature
        {{ DiscussionBoard.errors[2855442].message }}
  • Profile picture of the author Leslie B
    I use the Whydowork adsense plugin. I just put the code in the text field of the plugin, tell it where I want it to appear and done. For what you want, you need to choose Single Page - Top. Easy and fast

    Leslie
    Signature
    Taking it one day at a time!
    {{ DiscussionBoard.errors[2855444].message }}
    • Profile picture of the author Audrey Harvey
      Originally Posted by Leslie B View Post

      I use the Whydowork adsense plugin. I just put the code in the text field of the plugin, tell it where I want it to appear and done. For what you want, you need to choose Single Page - Top. Easy and fast

      Leslie
      I use that plugin too, much easier for technically challenged people like me to add adsense without messing up everything else!
      Signature

      Expert content written by an experienced veterinarian and published magazine and newspaper writer.
      Feel free to contact me for details.
      {{ DiscussionBoard.errors[2855789].message }}
      • Profile picture of the author Leslie B
        Originally Posted by Audrey Harvey View Post

        I use that plugin too, much easier for technically challenged people like me to add adsense without messing up everything else!
        It's one of the reasons why I started using it, I needed a plugin that most of my clients could work with. That's how I came to this one.

        Leslie
        Signature
        Taking it one day at a time!
        {{ DiscussionBoard.errors[2860093].message }}
  • Profile picture of the author yukon
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[2855714].message }}
    • Profile picture of the author Nexus7
      Originally Posted by yukon View Post

      You might need to wrap the Adsense code with <center> tags.

      Example:

      <center>
      ADSENSE CODE HERE...
      </center>
      Deprecated tag and doesn't always work.

      Use:

      <div style="text-align: center;">
      ADSENSE CODE
      </div>

      You may need to add a few line breaks after this: <br /><br />
      {{ DiscussionBoard.errors[2856087].message }}
  • Profile picture of the author gittar1122
    I think Easy AdSense wordpress plugin can help you.
    {{ DiscussionBoard.errors[2856130].message }}
  • Profile picture of the author Azlan
    wow, there are so many good advice already on this thread... at first i want to offer my help as well, but i guess i do not have too...

    - azlan
    Signature

    New WSO - Coming Soon...

    {{ DiscussionBoard.errors[2860056].message }}

Trending Topics