Remove Genesis Entry Footer Conditionally

This code enables you to use different conditional tags to remove the entry footer on specific pages.

The following example removes the entry footer globally excluding the front page.

add_filter( 'genesis_entry_footer', 'remove_entry_footer', 2 );
function remove_entry_footer() {
if ( is_front_page() )
    return;
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
}

Its removes the category and tags links in the entry footer as well as the markup.

Add the code to your child themes functions file using a code editor.

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.