Skip to content

Instantly share code, notes, and snippets.

@fovoc
Last active August 29, 2015 14:04
Show Gist options
  • Save fovoc/9042d26e3ad13dce5939 to your computer and use it in GitHub Desktop.
Save fovoc/9042d26e3ad13dce5939 to your computer and use it in GitHub Desktop.
<?php
function blog_small_content() {
global $ss_framework;
echo '<article '; post_class(); echo '>';
do_action( 'shoestrap_in_article_top' );
echo '<div class="entry-summary">';
echo apply_filters( 'shoestrap_do_the_excerpt', get_the_excerpt() );
echo $ss_framework->clearfix();
echo '</div>';
do_action( 'shoestrap_in_article_bottom' );
echo '</article>';
}
function initiate_blog_small() {
// Our page slug is "blog-small"
if ( is_page('blog-small') ) {
add_action( 'shoestrap_content_override', 'blog_small_content' );
}
}
add_action( 'wp', 'initiate_blog_small' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment