putting ads between the post heading andpost body

Discussion in 'AdSense' started by sft_hrt2002, Jan 20, 2008.

  1. #1
    how to put ad between the post heading and post body in blogger?
     
    sft_hrt2002, Jan 20, 2008 IP
  2. D@nger

    D@nger Banned

    Messages:
    101
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In Edit HTML u can do tat..

    else u can keep ads btwn posts...thr is an option in blogger..
     
    D@nger, Jan 20, 2008 IP
  3. k_e_i_k_u_n_1_7

    k_e_i_k_u_n_1_7 Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    is that allowed? ive read from somewhere that someone got his site banned because of putting their ads under the blog post title. just a question, i don't really mean to hijack this thread.
     
    k_e_i_k_u_n_1_7, Jan 20, 2008 IP
  4. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #4
    You should post in blogging section..anyway, just insert the adsense codes into the end of your header.php file using your wordpress admin panel. Adjust and DIV if necessary :)

    Hope everything work out :D
     
    KC TAN, Jan 20, 2008 IP
  5. zybron

    zybron Peon

    Messages:
    199
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Dude, he asked how to do it with a blogger blog. Reading is fundamental.

    You need to find this section of code in your template:

    <b:if cond='data:post.title'>
          <h3 class='post-title'>
          <b:if cond='data:post.url'>
            <a expr:href='data:post.url'><data:post.title/></a>
          <b:else/>
            <data:post.title/>
          </b:if>
          </h3>
        </b:if>
    Code (markup):
    Place your code immediately after that and it will show up between the post title and the body of the post.

    However, you may want to set it up like I have:

    <b:if cond='data:post.title'>
          <h3 class='post-title'>
          <b:if cond='data:post.url'>
            <a expr:href='data:post.url'><data:post.title/></a>
          <b:else/>
            <data:post.title/>
          </b:if>
          </h3>
        </b:if>
    
        <div class='post-header-line-1'/>
    
        <div class='post-body'>
    <b:if cond='data:blog.pageType == "item"'>
    <div style='float:left;margin-right: 5px;margin-bottom: 5px'>
    <ADSENSE CODE HERE>
    </div>
    </b:if>
    Code (markup):
    This is set up to include the adsense code in the post body only if the blog is displaying a single post. In that way, you don't accidentally display more adsense ads on a single page than you are supposed to. Additionally, I wrapped the code in a div that floats the code to the left so text wraps around the ad. I use a small square ad in that area and with the text wrapping around it looks very nice.
     
    zybron, Jan 20, 2008 IP
  6. Yordi

    Yordi Peon

    Messages:
    471
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6

    thank you a lot, I also was looking for this
     
    Yordi, Jan 20, 2008 IP