WordPress.org

Ready to get started?Download WordPress

Forums

2 sidebars on same side in Atahualpa? (8 posts)

  1. jonamerica
    Member
    Posted 5 years ago #

    I'm wondering if there is a way to set both the left and right sidebars to be on the same side of the page, either left or right.

    Pardon my poor ascii art.
    ______________
    |body...|.|..|
    |..........|.|..|
    |..........|.|..|
    |..........|.|..|
    |..........|.|..|
    |..........|.|..|
    ______________

    Make sense? Is this possible?

  2. bytesforall
    Member
    Posted 5 years ago #

    The theme is prepared to allow that. I might be missing something but it should work like this: Cut the following from header.php

    <?php if ( $left_col == "on" ) { ?>
    <!-- Left Sidebar -->
    <td id="left">
    
    <?php // Widgetize the Left Sidebar
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) :
    endif; ?>
    
    </td>
    <!-- / Left Sidebar -->
    <?php } ?>

    and paste it into footer.php, right before this:

    <?php if ( $right_col == "on" ) { ?>
    <!-- Right Sidebar -->
    <td id="right">
    
    <?php // Widgetize the Right Sidebar
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) :
    endif; ?>
    
    </td>
    <!-- / Right Sidebar -->
    <?php } ?>

    and in header.php change this:

    <colgroup>
    <?php if ( $left_col == "on" ) { ?>
    <col class="colone" />
    <?php } ?>
    <col class="coltwo" />
    <?php if ( $right_col == "on" ) { ?>
    <col class="colthree" />
    <?php } ?>
    </colgroup>

    to this:

    <colgroup>
    <col class="coltwo" />
    <?php if ( $left_col == "on" ) { ?>
    <col class="colone" />
    <?php } ?>
    <?php if ( $right_col == "on" ) { ?>
    <col class="colthree" />
    <?php } ?>
    </colgroup>
  3. markchowell
    Member
    Posted 5 years ago #

    This worked...thanks...BUT when I try to edit the sidebar content it won't let me update the right sidebar. Ideas?

  4. maxy
    Member
    Posted 5 years ago #

    Yeah I have the same problem, can anyone please help?

  5. TheOvertime.com
    Member
    Posted 5 years ago #

    Maybe try editting the sidebars while they are back on the sides, and then when finished move the code back over.... just a thought

  6. maxy
    Member
    Posted 5 years ago #

    This actually works perfectly!!! but this moves both sidebars to the right. Does anyone know how to move them to the left?

    Thank so much

  7. krmartel
    Member
    Posted 5 years ago #

    If anybody is checking this thread still...

    I tried this and it put my left SB above my header. It did make room for a sidebar next to my right one (on the right)...

    Any suggestions? What might have I done?

  8. jfrenaye
    Member
    Posted 5 years ago #

    The latest version has the ability to add two sidebars on either side. Also, I wonder if just resizing the center column to 200 the right column to 200 and the left to 600 (or some such number) woudl do it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags