You need to add a dynamic sidebar to create a widget area. This is described in codex here. There are two steps to this process. First you need to register the sidebar, which you can find in that theme’s functions.php file. In that theme it is line 180 where you see the function titled parament_register_sidebars. Looks something like this:
function parament_register_sidebars() {
register_sidebar( array(
'name' => __( 'Primary Sidebar', 'parament' ),
'id' => 'sidebar-1',
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
) );
}
To create another dynamic sidebar you need to copy the register_sidebar code and just rename your parameters. Then the second step is calling the sidebar by checking first if your sidebar is_active_sidebar and then calling dynamic_sidebar where the parameter you are passing is the ‘id’ of the sidebar you registered. You can do this as many times as you want.
Thread Starter
cpisar
(@cpisar)
I have already added the dynamic sidebar coding in functions.php so I can see the widget area in my WordPress dashboard. I have also added the necessary coding in sidebar.php. I still have the same two problems: 1. I don’t know how/where to assign size and placement of each sidebar/widget within the coding. 2. When I place something inside either of the sidebars I have created they aren’t showing up on my website. Thanks again for the help.