From bf6dfb604662653b6bb2b7bda05f7f00765f4f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Ko=CC=88nemann?= Date: Fri, 13 Apr 2018 20:19:33 +0200 Subject: [PATCH] Adding the herocanvas widget position --- global-templates/hero.php | 4 +++- inc/widgets.php | 18 ++++++++++++++---- sidebar-herocanvas.php | 16 ++++++++++++++++ 3 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 sidebar-herocanvas.php diff --git a/global-templates/hero.php b/global-templates/hero.php index e308cde..05ddb3f 100644 --- a/global-templates/hero.php +++ b/global-templates/hero.php @@ -7,12 +7,14 @@ ?> - +
+ +
diff --git a/inc/widgets.php b/inc/widgets.php index 668b6a0..030a893 100644 --- a/inc/widgets.php +++ b/inc/widgets.php @@ -82,9 +82,19 @@ if ( ! function_exists( 'understrap_widgets_init' ) ) { ) ); register_sidebar( array( - 'name' => __( 'Hero Static', 'understrap' ), + 'name' => __( 'Hero Canvas', 'understrap' ), + 'id' => 'herocanvas', + 'description' => 'Full size canvas hero area for Bootstrap and other custom HTML markup', + 'before_widget' => '', + 'after_widget' => '', + 'before_title' => '', + 'after_title' => '', + ) ); + + register_sidebar( array( + 'name' => __( 'Top Full', 'understrap' ), 'id' => 'statichero', - 'description' => 'Static Hero widget. no slider functionallity', + 'description' => 'Full top widget with dynmic grid', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', @@ -92,9 +102,9 @@ if ( ! function_exists( 'understrap_widgets_init' ) ) { ) ); register_sidebar( array( - 'name' => __( 'Footer Full', 'understrap' ), + 'name' => __( 'Bottom Full', 'understrap' ), 'id' => 'footerfull', - 'description' => 'Widget area below main content and above footer', + 'description' => 'Full bottom widget with dynmic grid', 'before_widget' => '', 'before_title' => '

', diff --git a/sidebar-herocanvas.php b/sidebar-herocanvas.php new file mode 100644 index 0000000..9c623d2 --- /dev/null +++ b/sidebar-herocanvas.php @@ -0,0 +1,16 @@ + + + + + + + + + \ No newline at end of file