if you looking for a way to create a new sidebar area, to add widget and show on different part of website(footer,header,left, right or main content section), you can use dynamic_sidebar() function.
1 2 3 4 5 6 7 8 9 10 11 12 | <?php //register new sidebar register_sidebar( array( 'id' => 'Sidebar_Name', 'name' => 'Sidebar Name' ) ); ?> |
Call and use new registered sidebar by using dynamic_sidebar() function in any theme PHP file.
1 2 3 4 5 6 7 8 | <?php // Call the new sidebar dynamic_sidebar("Sidebar_Name"); ?> |
After that, you can see the new sidebar in backend’s widget area:
you can use following parameters with register sidebar:
- ‘description’
- ‘class’
- ‘before_widget’
- ‘after_widget’
- ‘before_title’
- ‘after_title’
More read at: https://codex.wordpress.org/Function_Reference/register_sidebar