How do I show a banner ad on a specific post page only?

Discussion in 'WordPress' started by EnvironmentAbout, Apr 7, 2011.

  1. #1
    I want to show a static banner ad on a particular post page of my wordpress blog. How do I do that?

    Is there any plugin out there that can manage my ads (other than Google adsense). I just want to show a static banner of certain advertiser on my blog.
     
    EnvironmentAbout, Apr 7, 2011 IP
  2. Yuuko008

    Yuuko008 Member

    Messages:
    682
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    33
    #2
    As far as the plugin goes. I can't think of a plugin that can do that. But you can always hardcode it on the template. You can use.

    is_post()
    or
    is_page()

    Hope this helps =))
     
    Yuuko008, Apr 7, 2011 IP
  3. EnvironmentAbout

    EnvironmentAbout Peon

    Messages:
    91
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Actually I don't know coding so it's quite difficult for me....
     
    EnvironmentAbout, Apr 7, 2011 IP
  4. Yuuko008

    Yuuko008 Member

    Messages:
    682
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    33
  5. msafi

    msafi Member

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    If you want the banner to be within the post content, you can simply paste it in the post using the HTML editor. If you want it in the sidebar for that post, you can use one of the "per-post sidebar widget" plugins, and make a text widget for that post specifically and your banner's HTML to it. If you want your banner in the header of post, then it's more tricky. You'd have to know a little bit of programming like Yuuko008 recommended.
     
    msafi, Apr 9, 2011 IP
  6. EnvironmentAbout

    EnvironmentAbout Peon

    Messages:
    91
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ya.. I want to add the banner in the right sidebar of my blog.. Or is there any way I can divide that space into two 125X125 size banner ad sections?
     
    EnvironmentAbout, Apr 9, 2011 IP
  7. msafi

    msafi Member

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    For that I recommend the Custom widgets plugin. It allows you to specify a widget for each page/post. Simply create a widget and add your banners HTML to it, and make it specific to the post you want.
     
    msafi, Apr 9, 2011 IP