Wordpress. Different widgets on different pages?

Discussion in 'WordPress' started by CREDITiv, Feb 8, 2009.

  1. #1
    am new to wordpress and was just wondering if it was possible to have certain widgets show up only on certain pages.

    I don't like having all of them on every page.

    Thanks
     
    CREDITiv, Feb 8, 2009 IP
  2. Big0ne

    Big0ne Well-Known Member

    Messages:
    2,615
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Wordpress has no much to do with widgets. It's related to your theme.

    Since widgets are usually displaying in sidebar, and sidebar is usually appearing on every page. There is no much to be done.

    I recommend you to insert plugins directly to your theme. Wherever you want them to appear.
     
    Big0ne, Feb 8, 2009 IP
  3. internetmarketingiq

    internetmarketingiq Well-Known Member

    Messages:
    3,552
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    165
    #3
    WP Remix theme (paid) will do this. But it's my understanding the author also has left himself a "backdoor" so he can get into your site if you use it.
     
    internetmarketingiq, Feb 10, 2009 IP
  4. kynangtinhoc

    kynangtinhoc Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok man, let's try this, by edit file sidebar.php:

    <?php if ( in_category('abc') ) { include ('sidebar-1.php'); } ?>
    PHP:
    with:
    abc: your category ID number
    sidebar-1.php: the sidebar template which contain your widget
    with this code you can create many sidebar template like: sidebar-1.php, sidebar-2.php... and include it to the sidebar.php file.
     
    kynangtinhoc, Feb 12, 2009 IP