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, 09:42 PM
evilsciencechick
 
4 posts · Feb 2009
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, 09: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, 10:13 PM
evilsciencechick
 
4 posts · Feb 2009
That worked great! Thanks!
  #4  
Old Feb 2, 2009, 10: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, 05:21 PM
evilsciencechick
 
4 posts · Feb 2009
even better! thanks!
  #6  
Old Feb 3, 2009, 05:38 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Thank you for the donation.
  #7  
Old Feb 17, 2009, 02: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
  #8  
Old Feb 17, 2009, 06: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
  #9  
Old Feb 18, 2009, 05: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
  #10  
Old Feb 18, 2009, 03: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
  #11  
Old Feb 19, 2009, 03: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
  #12  
Old Mar 25, 2009, 02: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
  #13  
Old Mar 25, 2009, 03: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 ;-(
  #14  
Old Mar 25, 2009, 07: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.
  #15  
Old Mar 26, 2009, 02: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
  #16  
Old Apr 21, 2009, 04:42 PM
evripidis's Avatar
evripidis
 
37 posts · Apr 2009
Greece
Greetings

I'm using this great theme and i 've made this hack for the sidebars.
Unfortunately, i have a small situation.

After the hack, my site (www.macedonas.gr) have an horizontal scroll bar and i can't figure it out why. I've shanged the size of my banner, but nothing changed.

Any suggestions ?

Thanks a lot in advanced

PS. Also i've noticed that there is one more option at the widgets sidebars menu. "Invisible Widget Area"
What is that ?

Last edited by evripidis; Apr 21, 2009 at 08:03 PM. Reason: ADD
  #17  
Old Apr 22, 2009, 12:27 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Your site didn't load for me, I waited a minute. Feel free to post again when it loads

The invisible widget area is probably from your former theme, go back to that theme, remove any widgets that may still be in there, then switch to Atahualpa again.

Or it might be from the plugin "Tabbed Widgets"
  #18  
Old Apr 22, 2009, 04:18 AM
evripidis's Avatar
evripidis
 
37 posts · Apr 2009
Greece
I think that you'll be able to see it now. It loads for me
  #19  
Old Apr 22, 2009, 07:08 PM
evripidis's Avatar
evripidis
 
37 posts · Apr 2009
Greece
Quote:
Originally Posted by Flynn
You site didn't load for me, I waited a minute. Feel free to post again when it loads

The invisible widget area is probably from your former theme, go back to that theme, remove any widgets that may still be in there, then switch to Atahualpa again.

Or it might be from the plugin "Tabbed Widgets"
The invisible widget area you were right was from the Tabbed Widget (please any update about that ?)

I've cleared old unwanted widgets-extensions. Also i don't have any other themes installed, but the blank space still exists.
I though maybe something went wrong at cut-copy-paste inside the code, but i doubled check it and i can't find anything (as far as i can see).

Any ideas ?
  #20  
Old Apr 22, 2009, 09:16 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Your "CSS Compress" plugin isn't working
  #21  
Old Apr 23, 2009, 06:46 AM
evripidis's Avatar
evripidis
 
37 posts · Apr 2009
Greece
Quote:
Originally Posted by Flynn
Your "CSS Compress" plugin isn't working
Why is that ?

Finally i've fix the blank. Probably some widget malfuction.
  #22  
Old May 7, 2009, 03: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?
  #23  
Old May 7, 2009, 03:57 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Yes it should
  #24  
Old May 8, 2009, 02: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!
  #25  
Old May 8, 2009, 08: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.

Bookmarks

Tags
columns



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 01:28 PM
Post headings moving from side to side and font size reducing sparry Atahualpa 3 Wordpress theme 3 Jun 21, 2009 07:23 AM
Update or Install and Move to New ranch2 New Versions, & Updating 1 May 25, 2009 01:52 PM
Javascripted input and text side-by-side in main content Brussells Atahualpa 3 Wordpress theme 1 May 20, 2009 09:02 AM
Moved side bars to right side, now have dotted lines around areas tomlucas Sidebars & Widgets 1 Apr 16, 2009 06:24 PM


All times are GMT -6. The time now is 06:38 PM.


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