My template came with 1 sidebar I needed 2. I got that working (after hours), however I can't seem to get the styles of the 2 side bars to match. I am new to this and experimenting my way through.
The site is http://www.weddingsorangecountyny.com/
I don't know if it is a style thing or a function thing
Any suggestions would be appreciated
here is my function code
<?php
if ( function_exists('register_sidebars') )
register_sidebar(3);
register_sidebar( array(
'name' => __('Sidebar1, side1'),
'name' => __('Sidebar2, side2'),
'before_widget' => '<div id="%1$s" class="widget-style">',
'after_widget' => '</div></div>',
'before_title' => '<div class="bg-h">
<div class="bg-hr">
<h2>',
'after_title' => '</h2>
</div>
</div>
<div class="inside-widget">',
));
// Links
function widget_links_with_style() {
?>
<div class="widget-style" id="links_with_style">
<ul>
<li>
<?php wp_list_bookmarks(array(
'title_before' => '<div class="bg-h">
<div class="bg-hr">
<h2>',
'title_after' => '</h2>
</div>
</div>
<div class="inside-widget">',
'category_before' => '',
'category_after' => '</div>'
)); ?>
</li>
</ul>
</div>
<?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__(' Links With Style'), 'widget_links_with_style');
// Search
function widget_theme727_search() {
?>
<div class="widget-style" id="search">
<div class="bg-h">
<div class="bg-hr">
<h2><?php _e('Search','theme727'); ?></h2>
</div>
</div>
<div class="inside-widget">
<div>
<?php// include (TEMPLATEPATH . "/searchform.php"); ?>
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>" style="padding:0; margin:0;">
<input type="text" class="searching" value="<?php the_search_query(); ?>" name="s" id="s" /><br /><br /><input class="submit" type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/search.gif" value="submit" />
</form>
</div>
</div>
</div>
<?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Search'), 'widget_theme727_search');
function tm_date($d='', $before='', $after='', $echo = true) {
global $id, $post, $day, $previousday, $newday;
$the_date = '';
$the_date .= $before;
if ( $d=='' )
$the_date .= mysql2date(get_option('date_format'), $post->post_date);
else
$the_date .= mysql2date($d, $post->post_date);
$the_date .= $after;
$previousday = $day;
$the_date = apply_filters('the_date', $the_date, $d, $before, $after);
if ( $echo )
echo $the_date;
else
return $the_date;
}
?>
**********************
here is the index.php code
<?php get_header(); ?>
<div class="side-bar-left">
<div class="ind">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else :?>
<?php endif; ?>
</div></div></div></div>
<div class="column-center">
<div class="indent-center">
<div class="side-bar-right">
<div class="ind">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else :?>
<?php endif; ?>
</div></div>
<?php if (have_posts()) : ?>
etc.
Thank You for taking the time
kevin