Помогите со вторым сайдбаром
-
Вообщем в css я не силен, поэтому прошу помощи. Как вывести второй сайдбар слева от центрального. Допустим файл index.php:
<?php get_header(); ?> <div id="content"> <div id="postarea"> <?php $tc_feat_check = get_option('tc_feat_check'); if($tc_feat_check): ?> <div class="featured_section"> <div class="featured_in"> <a href="<?php $tc_feat_link = get_option('tc_feat_link'); echo $tc_feat_link; ?>"><img src="<?php $tc_feat_content = get_option('tc_feat_content'); echo $tc_feat_content; ?>" alt="featured" /></a> </div> </div> <?php endif; ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="homepage_post"> <div class="homepage_in"> <?php if(function_exists('get_the_image')) { get_the_image(array('image_scan' => true)); } ?> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php the_excerpt(__('Read More »'));?><div class="clear"></div> <div class="homepost_data"> <div class="homepost_left"> <small><?php the_time('d.m.Y') ?> | Просмотров: <?php if(function_exists('the_views')) { the_views(); } ?></small> <?php edit_post_link('Изменить','',''); ?> </div> <div class="homepost_right"> <div class="excrept_but"> <?php comments_popup_link('комментировать', '1 комментарий', '% комментариев' ); ?> </div> <div class="excrept_but"> <a href="<?php the_permalink() ?>">читать полностью</a> </div> </div> <div class="clear"></div> </div> </div> </div> <?php endwhile; else: ?> <div class="homepage_post"> <div class="homepage_in"> <h3 style="margin-bottom:800px;"><?php _e('К сожалению, по Вашему запросу ничего не найдено.'); ?></h3> </div> </div> <?php endif; ?> <div class="pagenavigation"> <?php if(function_exists('wp_page_numbers')) {wp_page_numbers();} ?> <div class="clear"></div> </div> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
Куда вставить
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
чтобы сайдбар был слева ?И на всякий случай css код первого сайдбара:
/*** Sidebar ***/ #sidebar { float: right; width: 300px; background: #FFF; border: 1px solid #a3a09e; color: #666; } #sidebar_in { border:1px solid #FFF; background: #e2dddc; } #sidebar h2 { margin: 0px 0px 5px 0px; color: #444; padding: 2px 0px 2px 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 20px; font-style: italic; } #sidebar ul { list-style-type: none; margin: 0; padding: 0; } #sidebar ul li { list-style-type: circle; margin: 0px 0px 2px 25px; padding: 1px 0px 0px 0px; } #sidebar ul li a, #sidebar ul li a:visited { font-size: 14px; } .widget { margin-bottom: 10px; padding: 5px; } .advertisment { padding: 5px 12px 5px 12px; } .advertisment img { padding: 5px; width: 125px; height: 125px; } .newsletter { border: 1px solid #C8C8C8; padding: 5px 5px 5px 20px; background: #FFF url(images/newsletter.png) top no-repeat; }
Просмотр 1 ответа (всего 1)
Просмотр 1 ответа (всего 1)
- Тема «Помогите со вторым сайдбаром» закрыта для новых ответов.