Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save duroe5698/24a1a7d022aad274f236 to your computer and use it in GitHub Desktop.
Save duroe5698/24a1a7d022aad274f236 to your computer and use it in GitHub Desktop.
Remove All Page Titles Exclude Blog and Archive Pages Genesis Framework Snippet
<?php
//* Remove titles on pages only
function remove_page_titles_genesis() {
if ( is_page() && !is_archive() && !is_page_template('page_blog.php') || $post->post_parent ) {
remove_action('genesis_entry_header', 'genesis_do_post_title');
}}
add_action ('get_header', 'remove_page_titles_genesis');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment