Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] Move sidebars to one side?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old May 29, 2011, 10:09 PM
sanguango
 
25 posts · May 2011
[SOLVED] Move sidebars to one side?

Hello guys, I want to move my left sidebar to the rigth, so I can have both sidebars together (=> center column, left sibebar, right sidebar).

There is a thread with the same title/question in this forum but the answer provided there did not work in my case. The code cited there is different from the one I have. I would therefore appreciate if you can give me a hand with this. I am using Atahualpa 3.6.7 and I have this code:

Code in header.php:
Code:
		<?php if ( $left_col == "on" ) { ?>

		<!-- Left Sidebar -->

		<td id="left">



			<?php // Widgetize the Left Sidebar 

			if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>

		

				<div class="widget widget_categories"><div class="widget-title">

				<h3><?php _e('Categories','atahualpa'); ?></h3>

				</div>

				<ul><?php wp_list_categories('show_count=1&title_li='); ?></ul>

				</div>

				

				<div class="widget widget_archive"><div class="widget-title">

				<h3><?php _e('Archives','atahualpa'); ?></h3>

				</div>

				<ul><?php wp_get_archives('type=monthly'); ?></ul>

				</div>



				<div class="widget widget_text"><div class="widget-title">

				<h3>A sample text widget</h3></div>

				<div class="textwidget">

				<p>Etiam pulvinar consectetur dolor sed malesuada. Ut convallis 

				<a href="http://wordpress.org/">euismod dolor nec</a> pretium. Nunc ut tristique massa. </p>

				<p>Nam sodales mi vitae dolor <em>ullamcorper et vulputate enim accumsan</em>. 

				Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. <strong>Nulla nulla lorem</strong>, 

				suscipit in posuere in, interdum non magna. </p>

				</div>

				

			<?php endif; ?>



		</td>

		<!-- / Left Sidebar -->

		<?php } ?>



		<?php if ( $left_col2 == "on" ) { ?>

		<!-- Left INNER Sidebar -->

		<td id="left-inner">



			<?php // Widgetize the Left Inner Sidebar 

			if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Inner Sidebar') ) : ?>

		

					<!-- no default content for the LEFT INNER sidebar -->

									

			<?php endif; ?>



		</td>

		<!-- / Left INNER Sidebar -->

		<?php } ?>
and

Code:
<colgroup>

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

<?php if ( $left_col2 == "on" ) { ?><col class="colone-inner" /><?php } ?>

<col class="coltwo" />

<?php if ( $right_col2 == "on" ) { ?><col class="colthree-inner" /><?php } ?>

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

</colgroup>
Code in footer.php:

Code:
<!-- Right Inner Sidebar -->

<?php if ( $right_col2 == "on" ) { ?>

<td id="right-inner">



	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Inner Sidebar') ) : ?>



		<div class="widget widget_categories"><div class="widget-title">

		<h3><?php _e('Categories','atahualpa'); ?></h3>

		</div>

		<ul><?php wp_list_categories('show_count=1&title_li='); ?></ul>

		</div>

		

		<div class="widget widget_archive"><div class="widget-title">

		<h3><?php _e('Archives','atahualpa'); ?></h3>

		</div>

		<ul><?php wp_get_archives('type=monthly'); ?></ul>

		</div>



		<div class="widget widget_text"><div class="widget-title">

		<h3>A sample text widget</h3></div>

		<div class="textwidget">

		<p>Etiam pulvinar consectetur dolor sed malesuada. Ut convallis 

		<a href="http://wordpress.org/">euismod dolor nec</a> pretium. Nunc ut tristique massa. </p>

		<p>Nam sodales mi vitae dolor <em>ullamcorper et vulputate enim accumsan</em>. 

		Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. <strong>Nulla nulla lorem</strong>, 

		suscipit in posuere in, interdum non magna. </p>

		</div>

	

	<?php endif; ?>



</td>

<?php } ?>



<!-- Right Sidebar -->

<?php if ( $right_col == "on" ) { ?>

<td id="right">



	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>

	

		<!-- Default content here -->

    	<div class="widget"><div class="widget-title"><h3>Recent Posts</h3></div>

			<?php $r = new WP_Query(array(

				'showposts' => 20,

				'what_to_show' => 'posts',

				'nopaging' => 0,

				'post_status' => 'publish',

				'ignore_sticky_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 id="linkcat-99" class="widget widget_links"><div class="widget-title">

    	<?php wp_list_bookmarks('category_before=&category_after=&title_before=<h3>&title_after=</h3></div>'); ?>

    	</div>



    	<div class="widget"><div class="widget-title">

    	<h3><?php _e('Meta','atahualpa'); ?></h3>

    	</div>

    	<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>



	<?php endif; ?>



</td>

<?php } ?>

<!-- / Right Sidebar -->
Thank you very much
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to get sidebars on one side tokshra Sidebars & Widgets 4 Jan 16, 2011 02:02 AM
[SOLVED] Move sidebars to one side? evilsciencechick Sidebars & Widgets 45 Oct 23, 2010 11:07 AM
[SOLVED] Search bar is under RSS/Email - how to move to side chaosisbliss Header configuration & styling 1 Sep 30, 2010 12:46 PM
[SOLVED] How to move posts and sidebars up closer to header? jms5017 Center area post/pages 5 Aug 4, 2010 11:29 PM
[SOLVED] How to move widget to right hand side of logo area rungster Header configuration & styling 5 Jun 22, 2010 04:02 PM


All times are GMT -6. The time now is 01:15 PM.


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