ThemeShaper Forums » Thematic

[closed]

Add left sidebar on certain pages

(5 posts)
  • Started 9 years ago by fedude
  • Latest reply from sfrangos
  • This topic is not resolved
  1. fedude
    Member

    I have created a child theme with no sidebars. I used the code below to remove the standard sidebar.

    // Do not display Sidebar
    function kill_sidebar() {
    	return FALSE;
    }
    add_action('thematic_sidebar', 'kill_sidebar');

    But on certain pages I would like to have a left sidebar that contains a mini page menu. It's probably easy in Thematic, but I'm still coming up-to-speed. Can anyone help?

    Posted 9 years ago #
  2. fedude
    Member

    Bump!

    Posted 9 years ago #
  3. I not a pro but I would
    do something like
    to leave it on single and category pages

    if (is_single ()|| is_category () )
    return true
    else
    return false

    Posted 9 years ago #
  4. fedude
    Member

    Thanks for the reply. I was thinking about somkething like that. Maybe using specific page ID's. Hacky, but still should work.

    I'm still so new to thematic that I don't know how to get a left sidebar instead of a right sidebar?

    Posted 9 years ago #
  5. Hi -

    Not sure anyone took a stab at the answer to what was asked here, so I will ask again:

    How do you use either a template or the functions file to only display a right (or left) sidebar on a certain page?

    Thanks -
    Scott

    Posted 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.