Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active January 25, 2016 20:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save billerickson/0c9b398d2c08e22ff318 to your computer and use it in GitHub Desktop.
<?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