From c90f428bf1fcc8f6c7dd288bab50dedddd87a043 Mon Sep 17 00:00:00 2001 From: koenemann Date: Mon, 9 Jan 2017 15:55:51 +0100 Subject: [PATCH] capsulate hero area --- global-templates/hero.php | 2 ++ home.php | 10 ++++------ index.php | 10 ++++------ 3 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 global-templates/hero.php diff --git a/global-templates/hero.php b/global-templates/hero.php new file mode 100644 index 0000000..5825f0b --- /dev/null +++ b/global-templates/hero.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/home.php b/home.php index a44b732..54c8ea6 100644 --- a/home.php +++ b/home.php @@ -15,14 +15,12 @@ get_header(); $container = get_theme_mod( 'understrap_container_type' ); $sidebar_pos = get_theme_mod( 'understrap_sidebar_position' ); $posts_style = get_theme_mod( 'understrap_posts_index_style' ); - -if ( is_front_page() && is_home() ) { - get_sidebar( 'hero' ); - - get_sidebar( 'statichero' ); -} ?> + + + +
diff --git a/index.php b/index.php index 2c22121..7832076 100644 --- a/index.php +++ b/index.php @@ -15,14 +15,12 @@ get_header(); $container = get_theme_mod( 'understrap_container_type' ); $sidebar_pos = get_theme_mod( 'understrap_sidebar_position' ); - -if ( is_front_page() && is_home() ) { - get_sidebar( 'hero' ); - - get_sidebar( 'statichero' ); -} ?> + + + +