WordPress.org

Support

Support » Themes and Templates » Add left sidebar to existing theme…

Add left sidebar to existing theme…

  • I now have an existing theme with only two columns. I would like to add a sidebar to the left side. This theme doesn’t have a sidebar.php. All references to the right sidebar are made in the index.php.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • then make a sidebar div in css float it left and make a sidebar.php and a call function to get your sidebar from index

    Thank you, thank you, thank you!! The first time I’ve seen a direct answer and so to the point. And the answer is not well spelt out in the sopport/documentation – not for non-techies/aspiring techies.

    Oh, did I say “Thank you?”

    Thank you.

    I am interested in the same thing. I am working with a redesign theme from Default. I have a sidebar.php, do I need another sidebar for the left column? Do I named something like sidebar-left.php? Renaming the original sidebar.php and removing the code I do not want to?

    @jorge, correct

    I forgot to ask about where to add the php get sidebar-left. In the index? and where exactly in the index.php? At the begining because is the left is first than the central colum or the rightone?

    I’ve seen both, but it seems the general consensus is that content should come first, then sidebars. Since the placement is all done via CSS, where it’s called shouldn’t matter.
    So probably after the content, before the right sidebar.

    It seems to me that it is going to work. But in this moment I have no time to work on it, I will do it in a couple of days and I will send a new post with the result. Thanks.

    miklb,

    I have done the changes, and it works. But the new sidebar it has to be call before the content and no with the normal get_sidebar php.

    In any pages you want to have the sidebar2.php (index, single, archive, page…) after the first:

    <?php get_header(); ?>

    It has to be write:

    <?php include (‘sidebar2.php’); ?>

    At least, this is the way it worked for my blog (lapizarra.org).
    Thanks a lot for yor helping, jorgemarsa

    Is there anyway to make sure that post content (mainly embedded flash movies) do not overflow onto it?

    See my thread: http://wordpress.org/support/topic/38480

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Add left sidebar to existing theme…’ is closed to new replies.