Created
October 24, 2013 21:22
-
-
Save shemul49rmc/7145277 to your computer and use it in GitHub Desktop.
Remove Featured Post on eleven40 Theme:
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 | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'eleven40_grid_loop_helper' ); | |
/** Add support for Genesis Grid Loop */ | |
function eleven40_grid_loop_helper() { | |
if ( function_exists( 'genesis_grid_loop' ) ) { | |
genesis_grid_loop( array( | |
'features' => 0, | |
'feature_image_size' => 0, | |
'feature_image_class' => 'alignleft post-image', | |
'feature_content_limit' => 0, | |
'grid_image_size' => 'grid-thumbnail', | |
'grid_image_class' => 'alignnone', | |
'grid_content_limit' => 300, | |
'more' => __( '[Continue reading]', 'genesis' ), | |
) ); | |
} else { | |
genesis_standard_loop(); | |
} | |
} | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment