Wsparcie » Motywy » Usunięcie "small sidebar" ze strony archiwum

  • Rozwiązano rosomak01

    (@rosomak01)


    Mam problem z wyświetlaniem zawartości archiwum (np. zakładka „Rosja” w menu głównym) Treść nie jest rozciągnięta na cała dostępną szerokość strony tylko jest zostawiona pusta kolumna (samll sidebar?). Strona to http://www.szwendalus.pl

    Plik archive.php wygląda tak

    <?php get_header(); ?>
    <?php global $bpxl_theme_options; ?>
    <div class="content-area">
    	<div class="content-archive">
    		<h1 class="section-heading uppercase">
    			<span>
    				<?php if (is_category()) { ?>
    					<?php single_cat_title(); ?>
    				<?php } elseif (is_tag()) { ?>
    					<?php single_tag_title(); ?><?php _e(" Archive", "bloompixel"); ?>
    				<?php } elseif (is_search()) { ?>
    					<?php _e("Search Results for:", "bloompixel"); ?> <?php the_search_query(); ?>
    				<?php } elseif (is_author()) { ?>
    					<?php _e("Author Archive", "bloompixel"); ?>
    				<?php } elseif (is_day()) { ?>
    					<?php _e("Daily Archive:", "bloompixel"); ?> <?php the_time('l, F j, Y'); ?>
    				<?php } elseif (is_month()) { ?>
    					<?php _e("Monthly Archive:", "bloompixel"); ?>: <?php the_time('F Y'); ?>
    				<?php } elseif (is_year()) { ?>
    					<?php _e("Yearly Archive:", "bloompixel"); ?>: <?php the_time('Y'); ?>
    				<?php } ?>
    			</span>
    		</h1>
    		<div class="content">
    		<?php
    			$bpxl_category_ID = get_query_var('cat');
    			//echo $bpxl_category_ID;
    			$bpxl_category_layout = get_tax_meta($bpxl_category_ID,'bpxl_category_layout_id');
    
    			if ($bpxl_category_layout == 'select' || $bpxl_category_layout == '') {
    				$bpxl_category_layout = $bpxl_theme_options['bpxl_archive_style'];
    			} else {
    				$bpxl_category_layout = get_tax_meta($bpxl_category_ID,'bpxl_category_layout_id');
    			}
    
    			if (have_posts()) : while (have_posts()) : the_post();
    
    			// Include Reviews
    			include('inc/review.php');
    
    			if ($bpxl_category_layout == '2') {
    				get_template_part('loop', 'blog2');
    			} else if ($bpxl_category_layout == '3') {
    				get_template_part('loop', 'blog3');
    			} else {
    				get_template_part('loop', 'blog');
    			}
    		?>
    		<?php endwhile; else: ?>
    			<div class="post">
    				<div class="no-results">
    					<p><strong><?php _e('There has been an error.', 'bloompixel'); ?></strong></p>
    					<p><?php _e('We apologize for any inconvenience, please hit back on your browser or use the search form below.', 'bloompixel'); ?></p>
    					<?php get_search_form(); ?>
    				</div><!--noResults-->
    			</div>
    		<?php endif; ?>
    		<?php if ($bpxl_theme_options['bpxl_pagination_type'] == '1') {
    				bpxl_pagination($wp_query->max_num_pages);
    		} else { ?>
    			<div class="norm-pagination">
    				<div class="nav-previous"><?php next_posts_link( __( '&larr; '.'Older posts', 'bloompixel' ) ); ?></div>
    				<div class="nav-next"><?php previous_posts_link( __( 'Newer posts'.' &rarr;', 'bloompixel' ) ); ?></div>
    			</div>
    		<?php } ?>
    		</div>
    	</div><!--.content-->
    	<?php if($bpxl_theme_options['bpxl_layout'] == 'csb_layout' || $bpxl_theme_options['bpxl_layout'] == 'bcs_layout' || $bpxl_theme_options['bpxl_layout'] == 'bsc_layout' || $bpxl_theme_options['bpxl_layout'] == 'cbs_layout' || $bpxl_theme_options['bpxl_layout'] == 'sbc_layout' || $bpxl_theme_options['bpxl_layout'] == 'scb_layout') { ?>
    		<div class="sidebar-small">
    			<div class="small-sidebar">
    				<?php
    					if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('Sidebar Small') );
    				?>
    			</div><!--End .small-sidebar-->
    		</div><!--End .sidebar-small-->
    	<?php } ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Próbowałem usunąć część odpowiedzialną za small sidebar – albo nic to nie zmienia, albo strona przestaje działać.

    Z góry dzięki za pomoc:)

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • Temat ‘Usunięcie "small sidebar" ze strony archiwum’ jest zamknięty na nowe odpowiedzi.