Genesis Title Toggle allows you to selectively hide or display individual page titles. By default it only applies to the ‘page’ post type, but you can add support for any post type. To enable it for posts, place the code below in your theme’s functions.php file (or a core functionality plugin).
<?php // dont include this line | |
/** | |
* Add Genesis Title Toggle to Posts | |
* | |
* @link http://www.billerickson.net/code/genesis-title-toggle-for-posts | |
* @author Bill Erickson | |
* | |
* @param array $post_types | |
* @return array | |
*/ | |
function be_title_toggle_on_posts( $post_types ) { | |
$post_types[] = 'post'; | |
return $post_types; | |
} | |
add_filter( 'be_title_toggle_post_types', 'be_title_toggle_on_posts' ); |