Locate functions.php in your active theme folder and add the bellow code in it.
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'recent posts',
'id'=>'recent',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('recent') ) : ?>
<p>This is what shows when no widgets are added.</p>
<?php
endif; ?>
Custom Widget Areas for WordPress is available to download: pluginsweb.com/2016/01/05/download-custom-widget-areas-for-wordpress/
ReplyDelete