Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Move sidebars to one side?


  #1  
Old Feb 2, 2009, 08:42 PM
evilsciencechick
 
4 posts · Feb 2009
[SOLVED] Move sidebars to one side?

Hi everyone! I just recently installed this theme and I'm really liking it! One thing I'd really like to do, if possible, would be to have both sidebars on one side. I was able to do this with my previous theme (K2), and I was wondering if was possible with this theme.

Thanks for your help!

http://evilsciencechick.com
  #2  
Old Feb 2, 2009, 08:52 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
The theme is prepared to do that even though it is not implemented as an automated feature. I might be missing something but this should work:

Cut the following from header.php:

PHP Code:
<?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 into footer.php, right before this:

PHP Code:
<?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 ?>
Go back to header.php and change this:

PHP Code:
<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:

PHP Code:
<colgroup>
<col class="coltwo" />
<?php if ( $left_col == "on" ) { ?>
<col class="colone" />
<?php ?>
<?php 
if ( $right_col == "on" ) { ?>
<col class="colthree" />
<?php ?>
</colgroup>
  #3  
Old Feb 2, 2009, 09:13 PM
evilsciencechick
 
4 posts · Feb 2009
That worked great! Thanks!
  #4  
Old Feb 2, 2009, 09:26 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Great, you were the first to test this as far as I know...

If you want to move the right border of the left sidebar to its left side, change Atahualpa Theme Options -> Sidebars -> LEFT sidebar style

HTML Code:
border-right: dashed 1px #CCCCCC;
to

HTML Code:
border-left: dashed 1px #CCCCCC;
  #5  
Old Feb 3, 2009, 04:21 PM
evilsciencechick
 
4 posts · Feb 2009
even better! thanks!
  #6  
Old Feb 3, 2009, 04:38 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Thank you for the donation.
  #7  
Old May 7, 2009, 02:46 AM
Lucker
 
17 posts · Apr 2009
Quote:
Originally Posted by Flynn

Cut the following from header.php: ...

Go back to header.php and change this:...

Does it suppose to work with Atahualpa 3.3.3?
  #8  
Old May 7, 2009, 02:57 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Yes it should
  #9  
Old May 8, 2009, 01:37 PM
kanotisten
 
1 posts · May 2009
First of all: Thanks for a great theme!

I have both sidebars on the right side and now I would like to get the "Featured content" above both these sidebars on the right side (http://www.personkryss.se). I am really frustrated because I can't seem to get it to work.

Does anyone have a tip?

thanks!
  #10  
Old May 8, 2009, 07:44 PM
evripidis's Avatar
evripidis
 
37 posts · Apr 2009
Greece
Ok i found the solution. The code has changed, so Flynn i'm rewriting here the update of the code-trick above. i hope that will help others too


Cut the following from header.php:

PHP Code:
<?php if ( $bfa_ata['left_col'] == "on" ) { ?>
        <!-- Left Sidebar -->
        <td id="left">

            <?php // Widgetize the Left Sidebar 
            
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
        
                    <div class="widget widget_categories"><div class="widget-title">
                    <h3><?php _e('Categories','atahualpa'); ?></h3>
                    </div><div class="widget-content">
                    <ul>
                        <?php wp_list_categories('show_count=1&title_li='); ?>
                    </ul>
                    </div></div>
                    
                    <div class="widget widget_archive"><div class="widget-title">
                    <h3><?php _e('Archives','atahualpa'); ?></h3>
                    </div><div class="widget-content">
                    <ul>
                        <?php wp_get_archives('type=monthly'); ?>
                    </ul>
                    </div></div>
                                    
            <?php endif; ?>

        </td>
        <!-- / Left Sidebar -->
        <?php ?>
and paste into footer.php, right before this:

PHP Code:
<?php if ( $bfa_ata['right_col'] == "on" ) { ?>
<!-- Right Sidebar -->
<td id="right">

    <?php // Widgetize the Right Sidebar
    
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>

        <div class="widget"><div class="widget-title">
        <h3>Recent Posts</h3></div><div class="widget-content">
        <?php $r = new WP_Query(array(
            
'showposts' => 20,
        
//    'cat__in'=>array(14),
            
'cat__not_in'=>array(15,80),
            
'what_to_show' => 'posts',
            
'nopaging' => 0,
            
'post_status' => 'publish',
            
'caller_get_posts' => 1));
        if (
$r->have_posts()) : ?>
        <ul>
        <?php  while ($r->have_posts()) : $r->the_post(); ?>
        <li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></li>
        <?php endwhile; ?>
        </ul>
        <?php wp_reset_query();  // Restore global post data stomped by the_post().
        
endif; ?>
        </div></div>

        <div class="widget"><div class="widget-title">
        <?php wp_list_bookmarks('category_before=&category_after=&title_before=<h3>&title_after=</h3></div><div class="widget-content">'); ?>
        </div></div>

        <div class="widget"><div class="widget-title">
        <h3><?php _e('Meta','atahualpa'); ?></h3>
        </div><div class="widget-content">
        <ul>
            <?php wp_register(); ?>
            <li><?php wp_loginout(); ?></li>
            <li><a href="http://wordpress.org/" title="
            <?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.','atahualpa'); ?>">
            <?php _e('WordPress','atahualpa'); ?></a></li>
            <?php wp_meta(); ?>
        </ul>
        </div></div>

    <?php endif; ?>

</td>
<!-- / Right Sidebar -->
<?php ?>
Go back to header.php and change this:

PHP Code:
<colgroup>
<?php if ( $bfa_ata['left_col'] == "on" ) { ?>
<col class="colone" />
<?php ?>
<col class="coltwo" />
<?php if ( $bfa_ata['right_col'] == "on" ) { ?>
<col class="colthree" />
<?php ?>
</colgroup>
to this:

PHP Code:
<colgroup>
<col class="coltwo" />
<?php if ( $bfa_ata['left_col'] == "on" ) { ?>
<col class="colone" />
<?php ?>
<?php 
if ( $bfa_ata['right_col'] == "on" ) { ?>
<col class="colthree" />
<?php ?>
</colgroup>
I don't know if i'm perfectly right (Flynn ?) cause there is the new widget code inside, but as i can see, it works now for me.
  #11  
Old May 10, 2009, 08:04 AM
liabelle's Avatar
liabelle
 
25 posts · Apr 2009
Quote:
SOS!!!
Is this working after the 3.3.3 ? Cause i've done the steps again, the left sidebar moved to the right but it falls up in the other sidebar!!!
Also the "one bar" now is gone far righter, out of the main page. I have to scroll to see it
I have experienced the same

Any solution? Thanx!
  #12  
Old Jun 16, 2009, 06:29 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
About the issue of having to scroll to see the sidebars, What is you screen resolution set to? You have set the layout to 1200 and the sidebars to 200 each so the center (which is the main column) is 800 px
If your screen resolution is anything less than 1200 px width, you will get the scroll bar

I also noticed you have a
HTML Code:
div#text-405265421 {
margin-top: 350px;
}
that is a large top margin.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #13  
Old Jul 2, 2009, 11:22 AM
mukundguruji
 
6 posts · Jun 2009
Thank you for this great theme Flynn. I have moved my left sidebar to right by following your instructions. Please see the same implemented at http://pallipravan.com (if this amounts to spamming, please remove this link. My site at its inception stage and I have not placed any add etc. on it that may benefit me. So not spamming, OK)
  #14  
Old Feb 17, 2009, 01:17 PM
Marie_Jensen
 
4 posts · Feb 2009
SWEDEN
Hi,
new here and just learning to theme and love it!!
I have tried to make theese changes to have my sidebars on one side but I can not find
Quote:
<colgroup>
<?php if ( $left_col == "on" ) { ?>
<col class="colone" />
<?php } ?>
<col class="coltwo" />
<?php if ( $right_col == "on" ) { ?>
<col class="colthree" />
<?php } ?>
</colgroup>
in my theme, I have the latest version and I would love to have my bars as I want them, thanks
  #15  
Old Feb 17, 2009, 05:54 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Quote:
Originally Posted by Marie_Jensen
Hi,
new here and just learning to theme and love it!!
I have tried to make theese changes to have my sidebars on one side but I can not find
in my theme, I have the latest version and I would love to have my bars as I want them, thanks
This should be around line 872-880 in /wp-content/themes/atahualpa/header.php
  #16  
Old Feb 18, 2009, 04:49 AM
Marie_Jensen
 
4 posts · Feb 2009
SWEDEN
Hi,
found the lines and made the changes as instructed but, my left sidebar is now acting as the contentcolumn with lots of space and my contentcolumn is transformed to a sidebar at the right, what more should I change in the code to have right columns as sidebar?

Marie
  #17  
Old Feb 18, 2009, 02:44 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
That's a fairly uncritical change, it should work. Try again. Or, let me see the error in action. Seems you've changed it back. I'll be around the next few hours
  #18  
Old Feb 19, 2009, 02:31 AM
Marie_Jensen
 
4 posts · Feb 2009
SWEDEN
Hi again,
tried once agian and I succeeded to have both my sidebar as I wanted, I deleted a lot of blanc rows in the header file were I cut the first text and after that it showed just fine, thank you for a lovely theme and I am looking forward to keep on improving and developing my site.

Have a nice day
Marie
  #19  
Old Mar 25, 2009, 01:10 PM
hospitalera
 
72 posts · Mar 2009
Prague
It worked for me also and I am nearly codephobic ;-) I show the blog of when I am finished customizing the heck out of it. Your theme is the best thing invented for wordpress since sliced bread (excuse the dodgy metaphore, you know what I mean!) SY
  #20  
Old Mar 25, 2009, 02:52 PM
hospitalera
 
72 posts · Mar 2009
Prague
Zu frueh gefreut ;-( I was singing Alleluia a bit too early, now the widget spacing of the left side bar is uneven. Can somebody please have a look at http://hospitalera.com/ and tell me how I managed to mess it up? Thanks a lot! SY
PS I left it in the default setting for the widget spacing, so it must be something what I did wrong whilst switching the site bars ;-(
  #21  
Old Mar 25, 2009, 06:11 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You've put various seemingly unnecessary DIV's inside the text widgets, and one of those DIV's is probably not closed, leading to text widgets being inside each other. If you clean up the content of the text widgets the margins between widgets should come back.
  #22  
Old Mar 26, 2009, 01:56 AM
hospitalera
 
72 posts · Mar 2009
Prague
Big Ooops, it worked, sorry for asking so many stupid questions and thanks for the help. SY

Bookmarks

Tags
columns

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can a place a logo image on the left side and another image on the right side? Ms. M Header configuration & styling 11 Jan 18, 2010 12:28 PM
Post headings moving from side to side and font size reducing sparry Atahualpa 3 Wordpress theme 3 Jun 21, 2009 06:23 AM
Update or Install and Move to New ranch2 New Versions, & Updating 1 May 25, 2009 12:52 PM
Javascripted input and text side-by-side in main content Brussells Atahualpa 3 Wordpress theme 1 May 20, 2009 08:02 AM
Moved side bars to right side, now have dotted lines around areas tomlucas Sidebars & Widgets 1 Apr 16, 2009 05:24 PM


All times are GMT -6. The time now is 05:03 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.