• Hey.

    I am using the flex theme and I tried to customize it and add a second sidebar to the left. I was able to add another sidebar, but unfortunately it isn’t displayed right.

    http://www.cmscentral.de/content

    That’s the first problem.

    The second problem is that even though there’s another sidebar being displayed. It’s not really the second sidebar, but a copy of the first one. Even though I have used different CSS tags (navcolr for the existing one on the right and navcoll for the new one on the left).

    I think I am overseeing something, but I just can’t figure out what it is.

    So please, if anybody could have a look, I’d be grateful.

    Thanks in advance!

    Florian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The question is what did you do to try to add a second sidebar?

    It looks like you may have put in the <?php get_sidebar(); ?> code twice and so ended up with a duplicate.

    If you want to call a second sidebar you’d have to have another sidebar file in addition to sidebar.php (say, sidebar2.php). You can call that file by using the following code:

    <?php include (TEMPLATEPATH . "/sidebar2.php"); ?>

    But then you’d also have to make changes to your css so that there’s room for the new sidebar by making other elements narrower. And you’d have to style the new sidebar so that it floats to the left. It gets a bit involved but it’s by no means impossible.

    I’m having the same problem.

    I followed this tutorial on adding a second sidebar: http://www.blogohblog.com/adding-extra-sidebar-to-your-wordpress-theme/

    The tutorial writer said there may be alignment issues but I’d have to fix them myself. Um, how? I’d like to align my second sidebar on the right side of my content, and I’ve already made everything narrower to accommodate it’s presence there, but I have absolutely no idea what to put in my CSS to get it to float on the right side of my content. Right now the second sidebar is directly underneath my first one.

    Help would greatly, greatly, GREATLY be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Second sidebar problems’ is closed to new replies.