I’m trying to build the sidebar, and here’s my code so far that I put in my widgets.php file:
function theme_slug_widgets_init() {
register_sidebar($upcomingevents = array(
‘name’ => __( ‘Upcoming-Events’, ‘upcoming-events’ ),
‘id’ => ‘upcoming-events-sidebar’,
‘description’ => __( ‘This is where all the upcoming events will be displayed.’),
‘before_title’ => ‘<h1>’,
‘after_title’ => ‘</h1>’,
) );
}
add_action( ‘widgets_init’, ‘theme_slug_widgets_init’ );
I added the new sidebar to my homepage using this: <?php register_sidebar( $upcomingevents ); ?>
Any idea as to what I’m doing wrong? Here’s my site: http://behmsauction.crowesnestcreative.com