Adding hero and static hero widget area to home.php too
This commit is contained in:
parent
9b06f55e6a
commit
b026572c52
13
home.php
13
home.php
|
@ -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">
|
||||||
|
|
||||||
|
|
Reference in New Issue