Remove post titles in grid

<?php // Remove when adding to your theme
/**
* Remove Post Title from Grid Posts
*
*/
function be_remove_post_title_in_grid() {
// First, we make sure we're in the grid loop.
if( ! apply_filters( 'is_genesis_grid_loop', false ) )
return;
if( in_array( 'teaser', get_post_class() ) ) {
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
// remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
// remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
}
}
add_action( 'genesis_before_entry', 'be_remove_post_title_in_grid' );
view raw functions.php hosted with ❤ by GitHub

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk