How can I add sidebar manually?

6.54K viewsCore
0

Hello.
I want to add sidebar manually at the right side because sidebar widget is not working. Currently I’m editing `base.php` inside of default theme.

<?php dynamic_sidebar( 'ap-top' ); ?>
<div style='width:100%;height:30px;background:#333;'>

</div>
<div id="ap-lists" class="clearfix" style='width:80%; float:left;'>
	<?php ap_questions_tab(get_permalink()); ?>
	<?php if ( $questions->have_posts() ) : ?>
		<div class="question-list">
	<?php
		
		/* Start the Loop */
		while ( $questions->have_posts() ) : $questions->the_post();
			global $post;
			include(ap_get_theme_location('content-list.php'));
		endwhile;
	?>
		</div>
	<?php 
		ap_pagination();
	?>
	<?php
		else : 
			include(ap_get_theme_location('content-none.php'));
		endif; 
	?>	
</div>

<div style='width:20%;height:100px;background:#444;float:right;'>
	`Can I add here sidebar widget ?`
	
</div>

Thank you very much.