Wordpress - Add Custom Sidebar
Step 1 -go to Appearance >> Editor, and open the functions.php file
Step-2
add_action(
'widgets_init'
,
'custom_register_sidebar'
);
function
custom_register_sidebar() {
register_sidebar(
array
(
'name'
=> __(
'Custom Sidebar'
,
'theme_name'
),
'id'
=>
'custom_sidebar'
,
'description'
=> __(
'Description for custom sidebar'
,
'theme_name'
),
'before_widget'
=>
'<aside id="%1$s" class="widget %2$s">'
,
'after_widget'
=>
'</aside>'
,
'before_title'
=>
'<h1 class="widget-title">'
,
'after_title'
=>
'</h1>'
) );
}
Call sidebar
<?php get_sidebar('left'); ?>
Wordpress - Add Custom Sidebar Is Very Helpful. Thanks for such Information
ReplyDeleteLooking for WordPress Support Visit :
WordPress Support
WordPress Technical Support
WordPress Support Phone Number
Superb Information
ReplyDeleteWP Support
Superb Information
ReplyDeleteWP Support