add php to allow the hero widgets to show on the fullwidth page template when the page using this template is set to the front page

This commit is contained in:
kelsS 2019-04-30 14:04:30 -04:00
parent 7475ec18da
commit 2f5e0182e2
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ get_header();
$container = get_theme_mod( 'understrap_container_type' ); $container = get_theme_mod( 'understrap_container_type' );
?> ?>
<?php if ( is_front_page() ) : ?>
<?php get_template_part( 'global-templates/hero' ); ?>
<?php endif; ?>
<div class="wrapper" id="full-width-page-wrapper"> <div class="wrapper" id="full-width-page-wrapper">
<div class="<?php echo esc_attr( $container ); ?>" id="content"> <div class="<?php echo esc_attr( $container ); ?>" id="content">