SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Different sidebar for home page and subpages

  1. #1
    SitePoint Member
    Join Date
    Aug 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Different sidebar for home page and subpages

    Hi Team

    Please advice me how to use different sidebar in wordpress for home page and subpages ..

    For example :

    Home >> sidebar Type 1

    Contact page >> No side bar

    Product page >> sidebar Type 2

    Thank you

  2. #2
    Grüße aus'm Pott
    SitePoint Award Recipient Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    2,404
    Mentioned
    39 Post(s)
    Tagged
    1 Thread(s)
    Hi shamrogan,

    Welcome to the forums!
    In WordPress you can pass a parameter to get_sidebar(), to include a sidebar other than your regular one.
    For example, <?php get_sidebar('left'); ?> would include the file 'sidebar-left.php' from your current theme directory.

    Maybe this will help, too: http://hibbard.eu/how-to-pass-parame...ess-templates/
    How well do you know your JavaScript from your jQuery?
    Check out SitePoint's latest JavaScript challenge


    My blog

  3. #3
    SitePoint Mentor bronze trophy
    Slackr's Avatar
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    674
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    There's also this free plugin which can help you if you aren't comfortable changing code.

  4. #4
    SitePoint Member
    Join Date
    Aug 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok Thank you sir .

  5. #5
    SitePoint Enthusiast seanuk's Avatar
    Join Date
    Dec 2012
    Location
    UK
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Slackr View Post
    There's also this free plugin which can help you if you aren't comfortable changing code.

    there is also this from WooThemes, it's also 'no coding required' and works independantly from the WooTheme framework, so you can use it in your themes:
    http://www.woothemes.com/woosidebars/

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •