A quick question about sidebars in Wordpress 3

Discussion in 'WordPress' started by joseph44, Feb 21, 2011.

  1. #1
    Hi,

    If I have two different pages on my site say page 1 and page 2.

    How can I place an item on the sidebar for page 1 and a different item for the sidebar
    in page 2?

    Is this possible by just clicking something or do I have to actually modify the code?

    Any help will be apprectiated.

    Thanks...
    Joseph
     
    joseph44, Feb 21, 2011 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have two options.

    You can create a new sidebar template, and within the loop of page.php do a conditional test for that page and offer the other sidebar up.

    Or you can use the WidgetLogic plugin, which will do the conditional testing inside of your Widget Admin screen.
     
    Dodger, Feb 21, 2011 IP
  3. windy

    windy Active Member

    Messages:
    1,093
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #3
    you can also do a conditional test in your sidebar.php
     
    windy, Feb 21, 2011 IP
  4. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah, there is that one too. I left that one out. doh!
     
    Dodger, Feb 22, 2011 IP
  5. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #5

    This might be what your looking for: http://wordpress.org/extend/plugins/total-widget-control/
     
    adbox, Feb 22, 2011 IP