Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/functions.php Secret
Created Apr 20, 2015

What would you like to do?
Remove Post Title from teasers in Genesis Grid plugin
<?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 ) )
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' );

This comment has been minimized.

Copy link
Owner Author

billerickson commented Apr 20, 2015

This will remove the post title from "teaser" posts in the Genesis Grid plugin. If you remove the // from lines 15-16 it will also remove the entry-header markup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.