Skip to content

Commit

Permalink
cleanup hero
Browse files Browse the repository at this point in the history
  • Loading branch information
kjroelke committed Aug 15, 2023
1 parent a9695b4 commit 1784703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wp-content/themes/k1-block-theme
Submodule k1-block-theme updated 220 files
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
?>
<section class="hero d-flex flex-column justify-content-center" id="hero">
<?php
$hero = get_field( 'hero', get_the_ID() );
$hero = get_field( 'hero' );
extract( $hero );
$headline = empty( $alternate_headline ) ? get_the_title( $post_id ) : $alternate_headline;
$headline = empty( $alternate_headline ) ? get_the_title() : $alternate_headline;
echo $content->get_hero_background( $has_background_image, $color, $color_direction, $background_image );
echo $content->get_hero_content( $headline, $subheadline, false );
?>
Expand Down

0 comments on commit 1784703

Please sign in to comment.