capsulate hero area
This commit is contained in:
parent
d31e82225c
commit
c90f428bf1
|
@ -0,0 +1,2 @@
|
||||||
|
<?php get_sidebar( 'hero' ); ?>
|
||||||
|
<?php get_sidebar( 'statichero' ); ?>
|
10
home.php
10
home.php
|
@ -15,14 +15,12 @@ get_header();
|
||||||
$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' );
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?php if ( is_front_page() && is_home() ) : ?>
|
||||||
|
<?php get_template_part( 'global-templates/hero', 'none' ); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrapper" id="wrapper-home">
|
<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">
|
||||||
|
|
10
index.php
10
index.php
|
@ -15,14 +15,12 @@ get_header();
|
||||||
|
|
||||||
$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' );
|
||||||
|
|
||||||
if ( is_front_page() && is_home() ) {
|
|
||||||
get_sidebar( 'hero' );
|
|
||||||
|
|
||||||
get_sidebar( 'statichero' );
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?php if ( is_front_page() && is_home() ) : ?>
|
||||||
|
<?php get_template_part( 'global-templates/hero', 'none' ); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrapper" id="wrapper-index">
|
<div class="wrapper" id="wrapper-index">
|
||||||
|
|
||||||
<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