diff --git a/source/functions/functions.php b/source/functions/functions.php index 87cafbf..9f04a21 100644 --- a/source/functions/functions.php +++ b/source/functions/functions.php @@ -239,6 +239,16 @@ function twentytwelve_widgets_init() { 'before_title' => '

', 'after_title' => '

', ) ); + + register_sidebar( array( + 'name' => __( 'Homepage Sidebar', 'twentytwelve' ), + 'id' => 'sidebar-home', + 'description' => __( 'The sidebar for the optional Homepage Template (only shows on homepage)', 'twentyeleven' ), + 'before_widget' => '", + 'before_title' => '

', + 'after_title' => '

', + ) ); } add_action( 'widgets_init', 'twentytwelve_widgets_init' ); diff --git a/source/templates/pages/homepage.php b/source/templates/pages/homepage.php index de1dce6..b48db01 100644 --- a/source/templates/pages/homepage.php +++ b/source/templates/pages/homepage.php @@ -1,6 +1,6 @@ @@ -27,4 +27,5 @@ + \ No newline at end of file diff --git a/source/templates/sidebar-home.php b/source/templates/sidebar-home.php new file mode 100644 index 0000000..35a1132 --- /dev/null +++ b/source/templates/sidebar-home.php @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file