diff --git a/views/partials/page-hero.php b/views/partials/page-hero.php index 267031a..a7f7d13 100644 --- a/views/partials/page-hero.php +++ b/views/partials/page-hero.php @@ -8,10 +8,11 @@ namespace CWC; // Set variables -$bgColor = get_field( 'background_color' ); -$isDark = get_field( 'is_dark' ); -$heading = get_field( 'heading' ); -$intro = get_field( 'intro' ); +$bgColor = get_field( 'background_color' ); +$isDark = get_field( 'is_dark' ); +$heading = get_field( 'heading' ); +$heroImage = get_field( 'hero_image' ); +$heroVector = get_field( 'hero_vector' ); // Fallback for heading if ( ! $heading ) { @@ -24,9 +25,31 @@ if ( is_home() || is_single() || is_archive() || is_search() || is_404() ) { } ?> -
> +
> -
+ + + + + + + + +
@@ -43,13 +66,6 @@ if ( is_home() || is_single() || is_archive() || is_search() || is_404() ) { echo wp_kses_post( $heading ); echo ''; } - - // Intro - if ( $intro ) { - echo '

'; - echo wp_kses_post( $intro ); - echo '

'; - } ?>