How to put adsense in header

Discussion in 'PHP' started by crash9811, Feb 17, 2011.

  1. #1
    I would like to put adsense banner in my header on the right side useing {literal}{/literal} tags.It is a php directory site.I want to put it in my templete header.tpl but i dont know where in the codeing it should go.New to php coding , any advise would be helpful.
     
    crash9811, Feb 17, 2011 IP
  2. ka4ok85

    ka4ok85 Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just put adsense code right after <body> and surround it with < div id='ads'> < /div >, so you can put some style into your css for right positioning
     
    ka4ok85, Feb 24, 2011 IP
  3. clonepal

    clonepal Active Member

    Messages:
    128
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #3
    Like ka4ok85 said, put the code after <body> , here it is a simple code to implement:

    
    <div style="text-align:center; padding-right: 20px; padding-top: 10px;">YOUR-adsense-CODE</div>
    
    Code (markup):
    -Alex
     
    clonepal, Feb 24, 2011 IP
  4. windy

    windy Active Member

    Messages:
    1,093
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #4
    just use the same way as you insert html code
     
    windy, Feb 24, 2011 IP
  5. clumbiecom

    clumbiecom Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    insert your adsense after tag <body>
     
    clumbiecom, Feb 27, 2011 IP