Two 250x250 Adsense side by side?

12 replies
  • SEO
  • |
How do I put two 250x250 Adsense ads side by side, in my Wordpress theme right
below the title of a post in the first fold?

Thank you
#adsense #side
  • Profile picture of the author Intrepreneur
    Originally Posted by archkre View Post

    How do I put two 250x250 Adsense ads side by side, in my Wordpress theme right
    below the title of a post in the first fold?

    Thank you
    I beleive a float right and left will do the trick..

    So wrap one like this

    <div style="display:block;float:left;margin: 5px 5px 5px 5px;"> 'adsense code 1' </div>
    and the second like this

    <div style="display:block;float:right;margin: 5px 5px 5px 5px;"> 'adsense code 1' </div>
    {{ DiscussionBoard.errors[764413].message }}
    • Profile picture of the author archkre
      Originally Posted by Intrepreneur View Post

      I beleive a float right and left will do the trick..

      So wrap one like this



      and the second like this
      Please, could you elaborate that?
      In what part of my theme should I copy that code, maybe in style.css?

      And where within style.css if affirmative?
      Thank you
      {{ DiscussionBoard.errors[764447].message }}
      • Profile picture of the author Intrepreneur
        No not style, each time you want to insert your code you use this
        <div style="display:block;float:left;margin: 5px 5px 5px 5px;"> 'adsense code 1' </div>
        Where 'asense code' is where you insert your adsense code.. The above code puts your code to the left, replacing the word "left" with the word right will put your adesne code on the right hand side.
        {{ DiscussionBoard.errors[764467].message }}
        • Profile picture of the author archkre
          Originally Posted by Intrepreneur View Post

          No not style, each time you want to insert your code you use this


          Where 'asense code' is where you insert your adsense code.. The above code puts your code to the left, replacing the word "left" with the word right will put your adesne code on the right hand side.
          I use Wordpress!
          And add my adsense through a plugin.
          Where do I add that code in that case, please?
          {{ DiscussionBoard.errors[764586].message }}
          • Profile picture of the author Intrepreneur
            You cant do it if using a plugin this needs to be done by hand at the top of your posts.. You can also do it by finding the particular fuctions in your template so that it appears everytimt that function is called, I' gussing you've never been inside your theme editor to see all this wonderful code to play with?
            {{ DiscussionBoard.errors[764632].message }}
            • Profile picture of the author archkre
              Originally Posted by Intrepreneur View Post

              You cant do it if using a plugin this needs to be done by hand at the top of your posts.. You can also do it by finding the particular fuctions in your template so that it appears everytimt that function is called, I' gussing you've never been inside your theme editor to see all this wonderful code to play with?
              Cool guess: What files inside my wp-theme do I have to copy the given code to, anyone?
              Thank you
              {{ DiscussionBoard.errors[765889].message }}
  • Profile picture of the author captivereef
    careful with that layout . If you have ads above the content below the title Google will frown on that and may ban you. They had a post on their adsense blog late last year on that type of layout. Basically if the title apears to be misleading you are in violation. Very grey area in terms of TOS. They got me that way!
    {{ DiscussionBoard.errors[764429].message }}
  • Profile picture of the author paulgl
    Editing wordpress themes can be a pain in the butt.
    css and other stuff make it a tedious and hit and miss
    prospect. Adding raw html can also be a pain.

    I think putting 2 of those side by side in the area you
    want is a little much.

    My advice is to scrap your current theme and do
    a search for themes with adsense blocks built in.
    Very, very easy then. It does sound as if you are
    a little iffy in changing code. So, this may be your
    best option.

    IMHO you will never find the perfect theme or layout.
    Just get as close as you can. Or, if you have a little
    cash, get a custom designed theme which will do
    exactly what you want.

    Paul
    Signature

    If you were disappointed in your results today, lower your standards tomorrow.

    {{ DiscussionBoard.errors[766104].message }}
  • Profile picture of the author lalit.burma
    Go to

    Main Index Template (index.php) and look title and after that you will have to start experiment. But before that save Main index in some notepad
    {{ DiscussionBoard.errors[766486].message }}
  • Profile picture of the author WebRiver
    Here is an example is here at www dot CareersPartTime dot com. I opened up my "Main Index" or index.php. Carefully observe or examine the beginning code, some of which begins the loop. Stay above this. This method works for your home page. Now if you would like to add this feature in a single post find the single.php and follow the above step. Pay close attention to where you are inserting code. If you would like it right above the content & right below the title find the { <?php the_content(''); ?> } and insert directly above this line of code.

    I hope this helped.

    WebRiver
    {{ DiscussionBoard.errors[2475091].message }}
    • Profile picture of the author paulgl
      Originally Posted by WebRiver View Post

      Here is an example is here at www dot CareersPartTime dot com. I opened up my "Main Index" or index.php. Carefully observe or examine the beginning code, some of which begins the loop. Stay above this. This method works for your home page. Now if you would like to add this feature in a single post find the single.php and follow the above step. Pay close attention to where you are inserting code. If you would like it right above the content & right below the title find the { <?php the_content(''); ?> } and insert directly above this line of code.

      I hope this helped.

      WebRiver
      Old thread.

      It helped. it helped show how not to put adsense on a page.

      This is an old thread, but somebody already mentioned that if you have no
      content above the fold, but adsense, you are breaking TOS.

      Granted, I have bad eyes and can only tolerate 1024 x 768, but I believe that
      setting is popular. And I am using a laptop with a 15 inch screen.

      But I assume millions do the same.

      No content above the fold on my setting. Bad idea.

      paul
      Signature

      If you were disappointed in your results today, lower your standards tomorrow.

      {{ DiscussionBoard.errors[2475455].message }}
  • Profile picture of the author celopereira
    Thanks Intrepreneur. That's exactly what I am looking for.

    I tried many other ways i got from internet but none of them worked for me.

    This piece of code is perfect.
    {{ DiscussionBoard.errors[3003959].message }}

Trending Topics