Grow your CSS skills. Land your dream job.

Funky theme help for sidebars

  • # December 19, 2012 at 6:59 pm

    Hey all,

    I’ve got a project I’m working on that is also a WordPress based site and I’m trying to determine how this might be better handled.

    Imagine one business with 3 branches. So we setup a landing page that would direct someone into whatever branch of the company they wanted to learn more. Each sub-section has it’s own fairly individual menu structure. So what I did to make it dynamic is I used the “is_tree” to make a menu show up as long as you are view a parent / child of a certain section:

    < ?php if (is_tree(38)) { ?>

    < ?php } else if (is_tree(40)) { ?>

    < ?php } else { ?>

    < ?php } ?>

    The only issue here is that I’m wondering how I might also do this with a sidebar that would include different things specific for each section. I didn’t want to create a gazillion page templates and also keep it where you could add widgets from the admin dashboard.

    Any ideas on how this could be done?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".