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.

Help on WP theme....(sidebar)

Discussion in 'HTML & Website Design' started by reuben0207, Sep 7, 2007.

  1. #1
    dear all.....
    SEMrush
    my site http://www.manutdfc.org are using WP with original theme. my problem is.....
    1. I want to create 2 different sidebar for my blog, 1 for my main page & the 2nd for the others pages. The reason is bcoz I only want put the "resource link/link partner" on main page while the rest of the pages is without the "resource link/link partners"

    2. I've been doing this by trying 2 create 2 different sidebar, but it's not successful.....

    what is the best method to do this? is it create 2 different sidebar configuration an ideal solution?:confused:

    Thank 4 helping out......
     
    reuben0207, Sep 7, 2007 IP
    SEMrush
  2. smatts9

    smatts9 Active Member

    Messages:
    1,089
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    88
    #2
    Goto your sidebar.php in the theme file and where the code is that includes the links put this:

    
    <?
    if (is_home())
    {
        // put code to display links here //
    }
    ?>
    
    Code (markup):
    That conditional tag will only display the links on the home page. Hope that's clear.
     
    smatts9, Sep 7, 2007 IP
    reuben0207 and bogart like this.
  3. reuben0207

    reuben0207 Peon

    Messages:
    243
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hey smatts9

    thankyou for ur help.....

    reputation added too........
     
    reuben0207, Sep 7, 2007 IP
  4. reuben0207

    reuben0207 Peon

    Messages:
    243
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    dear Moderator....
    this thread can be closed for discussion......problem solved.....
     
    reuben0207, Sep 9, 2007 IP