WordPress.org

Forums

Add left sidebar to existing theme... (10 posts)

  1. Karl
    Member
    Posted 11 years ago #

    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!

  2. dawg
    Member
    Posted 11 years ago #

    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

  3. starapple
    Member
    Posted 10 years ago #

    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.

  4. jorgemarsa
    Member
    Posted 10 years ago #

    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?

  5. Michael Bishop

    Posted 10 years ago #

    @jorge, correct

  6. jorgemarsa
    Member
    Posted 10 years ago #

    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?

  7. Michael Bishop

    Posted 10 years ago #

    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.

  8. jorgemarsa
    Member
    Posted 10 years ago #

    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.

  9. jorgemarsa
    Member
    Posted 10 years ago #

    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

  10. leMaxim
    Member
    Posted 10 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.