|
#1
![Old](images/bytesforall/statusicon/post_old.gif)
Feb 2, 2009, 09:42 PM
|
|
[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](images/bytesforall/statusicon/post_old.gif)
Feb 2, 2009, 09:52 PM
|
![Flynn's Avatar](image.php?s=2b0b2a516152043ed981cbdb3eaf982b&u=1&dateline=1256758545) |
|
|
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](images/bytesforall/statusicon/post_old.gif)
Feb 2, 2009, 10:13 PM
|
|
That worked great! Thanks!
|
#4
![Old](images/bytesforall/statusicon/post_old.gif)
Feb 2, 2009, 10:26 PM
|
![Flynn's Avatar](image.php?s=2b0b2a516152043ed981cbdb3eaf982b&u=1&dateline=1256758545) |
|
|
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](images/bytesforall/statusicon/post_old.gif)
Feb 3, 2009, 05:21 PM
|
|
even better! thanks!
|
#6
![Old](images/bytesforall/statusicon/post_old.gif)
Feb 3, 2009, 05:38 PM
|
![Flynn's Avatar](image.php?s=2b0b2a516152043ed981cbdb3eaf982b&u=1&dateline=1256758545) |
|
|
3,768 posts · Oct 2008
Munich, Germany
|
|
Thank you for the donation.
|
#7
![Old](images/bytesforall/statusicon/post_old.gif)
May 7, 2009, 03:46 AM
|
|
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](images/bytesforall/statusicon/post_old.gif)
May 7, 2009, 03:57 AM
|
![Flynn's Avatar](image.php?s=2b0b2a516152043ed981cbdb3eaf982b&u=1&dateline=1256758545) |
|
|
3,768 posts · Oct 2008
Munich, Germany
|
|
Yes it should
|
#9
![Old](images/bytesforall/statusicon/post_old.gif)
May 8, 2009, 02:37 PM
|
|
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](images/bytesforall/statusicon/post_old.gif)
May 8, 2009, 08:44 PM
|
![evripidis's Avatar](image.php?s=2b0b2a516152043ed981cbdb3eaf982b&u=1105&dateline=1240442002) |
|
|
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](images/bytesforall/statusicon/post_old.gif)
May 10, 2009, 09:04 AM
|
|
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](images/bytesforall/statusicon/post_old.gif)
Jun 16, 2009, 07:29 AM
|
![juggledad's Avatar](image.php?s=2b0b2a516152043ed981cbdb3eaf982b&u=675&dateline=1243595674) |
|
|
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](images/bytesforall/statusicon/post_old.gif)
Jul 2, 2009, 12:22 PM
|
|
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](images/bytesforall/statusicon/post_old.gif)
Feb 17, 2009, 02:17 PM
|
|
|
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](images/bytesforall/statusicon/post_old.gif)
Feb 17, 2009, 06:54 PM
|
![Flynn's Avatar](image.php?s=2b0b2a516152043ed981cbdb3eaf982b&u=1&dateline=1256758545) |
|
|
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](images/bytesforall/statusicon/post_old.gif)
Feb 18, 2009, 05:49 AM
|
|
|
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](images/bytesforall/statusicon/post_old.gif)
Feb 18, 2009, 03:44 PM
|
![Flynn's Avatar](image.php?s=2b0b2a516152043ed981cbdb3eaf982b&u=1&dateline=1256758545) |
|
|
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](images/bytesforall/statusicon/post_old.gif)
Feb 19, 2009, 03:31 AM
|
|
|
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](images/bytesforall/statusicon/post_old.gif)
Mar 25, 2009, 02:10 PM
|
|
|
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](images/bytesforall/statusicon/post_old.gif)
Mar 25, 2009, 03:52 PM
|
|
|
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](images/bytesforall/statusicon/post_old.gif)
Mar 25, 2009, 07:11 PM
|
![Flynn's Avatar](image.php?s=2b0b2a516152043ed981cbdb3eaf982b&u=1&dateline=1256758545) |
|
|
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](images/bytesforall/statusicon/post_old.gif)
Mar 26, 2009, 02:56 AM
|
|
|
72 posts · Mar 2009
Prague
|
|
Big Ooops, it worked, sorry for asking so many stupid questions and thanks for the help. SY
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Hybrid Mode
|
|