1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

adsense and wordpress

Discussion in 'Placement / Reviews / Examples' started by nightwaker, Oct 14, 2006.

  1. #1
    How to put adsense code into word press blog to work correctly ?

    when i put it within article it does not appear on page.

    Wordpress puts <br/> tag after each string. how to avoid this ?

    google_ad_height = 280;<br />
    google_ad_format = "336x280_as";<br />
    google_ad_type = "text";<br />
    google_ad_channel ="";<br />
    google_color_border = "000000";<br />
    google_color_bg = "F0F0F0";<br />
     
    nightwaker, Oct 14, 2006 IP
  2. fablex

    fablex Peon

    Messages:
    468
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    put it directly in your template files.
     
    fablex, Oct 14, 2006 IP
  3. andriusk

    andriusk Well-Known Member

    Messages:
    367
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    140
    #3
    How are you trying to put it?

    For me everything works ok when I edit template.
     
    andriusk, Oct 14, 2006 IP
  4. nightwaker

    nightwaker Well-Known Member

    Messages:
    552
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    123
    #4
    No, not into template

    I put it directly into article. Is it impossible?

    Where is template located ?
     
    nightwaker, Oct 14, 2006 IP
  5. andriusk

    andriusk Well-Known Member

    Messages:
    367
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    140
    #5
    I haven't tried to put into article directly.

    Template is located in your wordpress directory /wp-content/templates
     
    andriusk, Oct 14, 2006 IP
  6. Brilliances

    Brilliances Active Member

    Messages:
    619
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    60
    #6
    I haven't tried this either but you could avoid the <br /> by putting everything in one line
     
    Brilliances, Oct 14, 2006 IP
  7. fablex

    fablex Peon

    Messages:
    468
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    cant you go to the html view and then put it in there btw?
     
    fablex, Oct 14, 2006 IP
  8. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #8
    It's not impossible.
    I suppose that you wanted to insert the ads to each post?
    You should edit the template.
     
    Richie_Ni, Oct 14, 2006 IP
  9. nightwaker

    nightwaker Well-Known Member

    Messages:
    552
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    123
    #9
    There is no template directory

    Only wp-content/themes/

    Which file should i edit in order to add ads within article ?
     
    nightwaker, Oct 14, 2006 IP
  10. andriusk

    andriusk Well-Known Member

    Messages:
    367
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    140
    #10
    Sorry :) I haven't checked for sure and it looked that I was wrong :)
     
    andriusk, Oct 14, 2006 IP
  11. infonote

    infonote Well-Known Member

    Messages:
    4,032
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    160
    #11
    In blogsome (based on wordpress), there is the posts template, put the adsense in the post section.
     
    infonote, Oct 14, 2006 IP
  12. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #12
    No,you don't need to use the FTP..Log into your wordpress and click 'Edit Template',you should edit over there.
     
    Richie_Ni, Oct 14, 2006 IP
  13. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #13
    To get access to your template you must log on and go to presentation, then theme editor. You insert the code exactly has is in your template, do not use </br>. If you want adsense in your posts you need this plugin.
     
    Emperor, Oct 14, 2006 IP
  14. websys

    websys Active Member

    Messages:
    841
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    78
    #14
    search for Adsense Deluxe
    i posted the url today only somewhere
     
    websys, Oct 14, 2006 IP
  15. websys

    websys Active Member

    Messages:
    841
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    78
    #15
    ooops , didnt see the guy above me posted the same thing ... anyway ... that plugin rocks ... FYI
     
    websys, Oct 14, 2006 IP
  16. phd

    phd Active Member

    Messages:
    496
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #16
    Do write continuously.. Don't push "ENTER" between the lines!!
     
    phd, Oct 14, 2006 IP
  17. kevinn

    kevinn Active Member

    Messages:
    1,337
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    90
    #17
    kevinn, Oct 14, 2006 IP
  18. jojojosonm

    jojojosonm Banned

    Messages:
    744
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Put codes inside templates. I think thats the correct way of placing ads.
     
    jojojosonm, Oct 15, 2006 IP
  19. VincentChow

    VincentChow Peon

    Messages:
    442
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Use AdSense Deluxe, the best plugin to insert AdSense in your post.
    The WordPress WYSIWYG is not good at all.
    Maybe you should disable it to format your article easier.
     
    VincentChow, Oct 15, 2006 IP