Skip to content

Instantly share code, notes, and snippets.

@aspirethemes
aspirethemes / functions.php
Last active April 11, 2016 04:19
functions.php
function aspire_last_post_class( $classes ) {
global $wp_query;
if ( is_home() && !is_paged() ) {
if( 0 == $wp_query->current_post || 1 == $wp_query->current_post ) {
$classes[] = 'large-6';
}
}
return $classes;