ThemeShaper Forums » Thematic


Different sidebars on different pages?

(9 posts)
  • Started 9 years ago by soluble
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. soluble

    Hi, I'm a complete newbie to Thematic.

    I have 3 keys pages which I would like to display different content within the sidebar of each page. Is there a way to set up/register multiple sidebars which I can call for each page? I'd like to be able to add different widgets within each sidebar. Any help would be greatly appreciated.

    Many thanks, Matt

    Posted 9 years ago #
  2. barber

    You could check for a page name, ID or custom field and change the sidebar content based on that. I generally don't use widgets but just put together custom functions. I'd be interested to know how people call actual widgets based on different pages, categories etc.

    Posted 9 years ago #
  3. create new widget areas:

    and use conditional logic to adjust when it appears.

    currently the only condition in that example is whether or not the sidebar has a widget in it:

    if (is_sidebar_active('header-aside'))

    but you could have it test for what page you are on w/ WP conditional tags

    for example to limit the widget to the blog index/home:

    if (is_sidebar_active('header-aside') AND is_home())
    Posted 9 years ago #
  4. fwunder

    Uhhh, not to be a nudge or noodge, but why not just use:

    This plugin adds a form to each widget on the Widgets panel which allows users to choose which pages and/or categories the widget is either displayed

    Works great for me...

    Posted 9 years ago #
  5. more than 1 way to skin a cat. which is a weird saying... b/c who skins cats? but definitely more than 1 answer. that plugin is the least coding-dependent, but i find it annoying if you have a lot of widgets. also something pretty elegant/clear about having a sidebar for say the 'shop' section of your site and 1 for the 'blog' section. to each her own...

    Posted 9 years ago #
  6. fwunder

    Just got back from downtown Philly. Uhhh,...the cat thing....nevermind.

    Ya know, at what point do we get with mods before we just use [child]theme switchers? A rhetorical question.

    Posted 9 years ago #
  7. @fwunder, didn't understand your rhetorical q. :{

    Posted 9 years ago #
  8. fwunder

    @helgatheviking, sorry, I was really just being a bit nostalgic; remembering more than one engineering prof beginning a lecture with Occam's razor. That was a long time ago. Without being too cliche' or oxymoronic, my personal observation of Thematic is that it's biggest weakness is it's strength - so many options, so little time. Please don't get me wrong. It's a really, really good problem. Again, the question wasn't really germane to the thread. Just a Thematician wanna-be trying to see a forest through the trees. Had to throw in one more cliche`!! ;)

    Posted 9 years ago #
  9. i must still be missing something. my engineering profs didn't talk about occam's razor.. they talked about dirt. small wonder, why i was so bored with it.

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.