Adding hero and static hero widget area to home.php too

This commit is contained in:
koenemann 2016-11-21 10:22:50 +01:00
parent 9b06f55e6a
commit b026572c52
1 changed files with 14 additions and 7 deletions

View File

@ -11,15 +11,22 @@
*/ */
get_header(); get_header();
?>
<?php
$container = get_theme_mod('understrap_container_type'); $container = get_theme_mod('understrap_container_type');
$sidebar_pos = get_theme_mod('understrap_sidebar_position'); $sidebar_pos = get_theme_mod('understrap_sidebar_position');
$posts_style = get_theme_mod( 'understrap_posts_index_style' ); $posts_style = get_theme_mod( 'understrap_posts_index_style' );
if ( is_front_page() && is_home() ) {
get_sidebar('hero');
get_sidebar('statichero');
} else {
// Do nothing...or?
}
?> ?>
<div class="wrapper" id="page-wrapper"> <div class="wrapper" id="wrapper-home">
<div class="<?php echo esc_html( $container ); ?>" id="content" tabindex="-1"> <div class="<?php echo esc_html( $container ); ?>" id="content" tabindex="-1">