• Resolved orel95

    (@orel95)


    Hello! I use BeTheme and there is no sidebar on my Category page and Search results page but on other pages I see it. Can somebody help me ?
    P.S. I don’t have file “archive.php” and “category.php” in my theme folder.

Viewing 1 replies (of 1 total)
  • Thread Starter orel95

    (@orel95)

    I solved it but I don’t know is it right. What do you think about it?

    1. I created file category.php with this code:

    <?php get_header();?>
    
    <div class="section di_cat <?php echo $section_class; ?>">
    	<div class="section_wrapper clearfix">
    		<div class="asdasd"></div>
    		<div class="column one column_blog">
    			<div class="blog_wrapper isotope_wrapperw">
    
    				<div class="posts_group lm_wrapper <?php echo implode(' ', $blog_classes); ?>">
    					<?php echo mfn_content_post( false, false, $load_more ); ?>
    				</div>
    
    				<?php
    					// pagination
    					if( function_exists( 'mfn_pagination' ) ):
    
    						echo mfn_pagination( false, $load_more );
    
    					else:
    						?>
    							<div class="nav-next"><?php next_posts_link(__('← Older Entries', 'betheme')) ?></div>
    							<div class="nav-previous"><?php previous_posts_link(__('Newer Entries →', 'betheme')) ?></div>
    						<?php
    					endif;
    				?>
    
    			</div>
    		</div>
    
    	</div>
    </div>
    <?php get_sidebar('sidebar1'); ?>
    
    <?php get_footer(); ?>

    2. I created file sidebar-sidebar1.php and put this code:

    <div class="asd">
    		<div class="di_cats">
                	<?php dynamic_sidebar( 'press' );?>
            </div>
    </div>

    It’s all. Sidebar appeared on my Category page.

Viewing 1 replies (of 1 total)
  • The topic ‘How to enable sidebar on category page?’ is closed to new replies.