Support » Themes and Templates » Add side bar
Add side bar
-
Hi, I am new to wordpress. Well, kind of. I can do basic updating and do a little coding here and there from what I learned back in highschool, but the advanced stuff is starting to kick my butt. I really want to add a third and fourth side bar to our current website: http://www.bayside-ah.com
I have a sidebar.php but have no idea what to code. Ive tried a few things Ive found on other forums but I cant get it to work. Help!
-
Here is the code under “sidebar.php”
<?php
/**
* The Sidebar containing the primary and secondary widget areas.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?><div id=”primary” class=”widget-area” role=”complementary”>
<?php
/* When we call the dynamic_sidebar() function, it’ll spit out
* the widgets for that widget area. If it instead returns false,
* then the sidebar simply doesn’t exist, so we’ll hard-code in
* some default sidebar stuff just in case.
*/
if ( ! dynamic_sidebar( ‘primary-widget-area’ ) ) : ?><div id=”search” class=”widget-container widget_search”>
<?php get_search_form(); ?>
</div><div id=”archives” class=”widget-container”>
<h3 class=”widget-title”><?php _e( ‘Archives’, ‘twentyten’ ); ?></h3>-
<?php wp_get_archives( ‘type=monthly’ ); ?>
</div>
<div id=”meta” class=”widget-container”>
<h3 class=”widget-title”><?php _e( ‘Meta’, ‘twentyten’ ); ?></h3>-
<?php wp_register(); ?>
- <?php wp_loginout(); ?>
<?php wp_meta(); ?>
</div>
<?php endif; // end primary widget area ?>
</div><!– #primary .widget-area –>
<?php
// A second sidebar for widgets, just because.
if ( is_active_sidebar( ‘secondary-widget-area’ ) ) : ?><div id=”secondary” class=”widget-area” role=”complementary”>
<?php dynamic_sidebar( ‘secondary-widget-area’ ); ?>
</div><!– #secondary .widget-area –>
<?php endif; ?>
- The topic ‘Add side bar’ is closed to new replies.