Widget Help....

Discussion in 'WordPress' started by Sort your finances out, Oct 4, 2011.

  1. #1
    Does anyone know of a widget that I can use to allow me to choose which pages my sidebar images are displayed on. I have an advertiser that only wants their ad to show on the home page but the widget I usually use, Dynamic Widgets, doesn't seem to be working anymore.

    Thanks very much
     
    Sort your finances out, Oct 4, 2011 IP
  2. Yuuko008

    Yuuko008 Member

    Messages:
    682
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    33
    #2
    well you can hard code the sidebar.php, you can use the is_page() , is_home() or is_front_page() =))
     
    Yuuko008, Oct 4, 2011 IP
  3. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #3
    A commercial ad management software that can do this type of placement and many more advanced placements is WP Traffic Tools. If you do a lot of Wordpress sites for clients then this would be a large benefit to have.

    Here's an example of it's ad management scope:
    [video=youtube;6aMS40_HDWQ]http://www.youtube.com/watch?v=6aMS40_HDWQ[/video]

    for a single solution, the plugin exec-php plugin (http://wordpress.org/extend/plugins/exec-php/) and the use of php (as Yuuko mentions) in a text widget might would be an easy solution too.

    
    <?php
    
    if (is_home())
    {
        echo "<ad html here>";
    }
    
    ?>
    
    Code (markup):
     
    adbox, Oct 5, 2011 IP