The same function controls the title for posts and pages; however, to remove the title from one or the other is different. As always open the functions.php in your favorite html/text editor or at Appearance > Editor (or in MS, found under Network Admin). Scroll to the bottom of the page and paste the code below into the functions.php file.
Remove Post Title from Posts
To remove all titles from posts, simply add the following:
[php]//REMOVE POST TITLE
remove_action('genesis_post_title', 'genesis_do_post_title');[/php]
With the introduction of Post Formats in WordPress 3.1, depending on its format, you may want to remove the post title. As it currently stands, has_post_format($arg1, $arg2) can only take a string in $arg1 and $arg2 is optional (and is $post_id), and the supported post formats from WordPress 3.1 are: aside, chat, image, link, quote, status, video, audio, and gallery. So to remove post titles from posts with these formats, simply add the following:
[php]if ( has_post_format( 'aside' ) || has_post_format( 'chat' ) || has_post_format( 'image' ) || has_post_format( 'link' ) || has_post_format( 'quote' ) || has_post_format( 'status' ) || has_post_format( 'video' ) || has_post_format( 'audio' ) || has_post_format( 'gallery' ) ) {
remove_action('genesis_post_title', 'genesis_do_post_title');[/php]
Remove Post Title from Pages
To remove page titles from specific pages, simply add the following:
[php]//REMOVE PAGE TITLE
add_action('get_header', 'child_remove_page_titles');
function child_remove_page_titles() {
$pages=array();
if (is_page($pages)) {
remove_action('genesis_post_title', 'genesis_do_post_title');
}
}[/php]
Or, to remove the title from the home page, simply add the following:
[php]//REMOVE PAGE TITLE FROM HOME PAGE
add_action('get_header', 'child_remove_page_titles');
function child_remove_page_titles() {
if (is_home()) {
remove_action('genesis_post_title', 'genesis_do_post_title');
}
}[/php]
Rob Holmes says
Thanks man! This post helped me a lot. I’m loving Genesis, but need a nudge here & there. Much appreciated.
Helena says
Thanks very much. I’ve seen the example for ONE post (page) but never how to do multiples!
Harmonie Ponder says
Use this but change the page id accordingly
//REMOVE PAGE TITLE FROM PAGE ID 6
add_action(‘get_header’, ‘child_remove_page_titles’);
function child_remove_page_titles() {
$pages=array();
if (is_page(‘6’)) {
remove_action(‘genesis_post_title’, ‘genesis_do_post_title’);
}
}
gulflee says
it dosnt work for me, i m trying to make a custom page template and try to remove all meta and title but the meta had removed but not it just dosnt remove the title?any clue, thank you
remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );
remove_action( ‘genesis_after_post_content’, ‘genesis_post_meta’ );
Travis Smith says
Your child theme may have moved those functions or there is another issue. Have you tried using my Genesis Hooks plugin to see where the functions may be located?
adam mclane says
Just wanted to say thanks for this. Totally helped me solve my problem tonight in a jiffy!
Jordan says
Your code for the “REMOVE PAGE TITLE FROM HOME PAGE” actually worked for me. Other sites had code for this but it would always remove all the titles throughout the site. I switched to is_front_page for a static homepage I am using and it worked great. I do not want to use a template for the homepage on this so that editing for the client is simple.
I tried to use a simple if statement, but it did not work at all.
Thank you!
Nate Shivar says
A current/maybe former Thesis user here (met at WordCamp) trying out my first site with Genesis. Thanks for the resource! Aside – your affiliate redirect didn’t work smoothly from your sidebar ad…hopefully it still went through.
Henrietta says
Just what I was looking for! Thanks!
Vanjo says
Hi Travis. Thanks for the information. Will these remove the post title in the archives too? I’m trying to search for a code that will remove the title only in posts (is_single()), while retaining the post titles in archives and blog pages. Can you help me with that, please?
JenP says
Thought I would add an update for Genesis 2.0 if anyone is still having problems and has upgraded – the hooks have changed for HTML5 – genesis_post_title is now genesis_entry_header. So, removing the title from the homepage would look like this
if (is_front_page()) {
remove_action(‘genesis_entry_header’, ‘genesis_do_post_title’);
}
Ref: http://www.carriedils.com/genesis-2-0-hooks/