-
-
Save billerickson/0c9b398d2c08e22ff318 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Homepage intro | |
* | |
*/ | |
function be_home_intro() { | |
echo '<h1 class="archive-title">' . get_the_title( get_option( 'page_for_posts' ) ) . '</h1>'; | |
$content = get_post( get_option( 'page_for_posts' ) )->post_content; | |
if( $content ) | |
echo '<div class="archive-description">' . apply_filters( 'the_content', $content ) . '</div>'; | |
} | |
add_action( 'genesis_before_loop', 'be_home_intro' ); | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment