Last active
November 25, 2015 17:23
-
-
Save duroe5698/24a1a7d022aad274f236 to your computer and use it in GitHub Desktop.
Remove All Page Titles Exclude Blog and Archive Pages Genesis Framework Snippet
This file contains hidden or 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 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