How to Remove the Genesis Page Title

Under certain circumstances, you might have the need to remove the Genesis Page Title from your posts, pages or both. The WP Snippets below cover several methods in which you can remove page titles from Genesis themes.

Requirements

  • StudioPress child theme & Genesis Framework
  • Access to functions.php file
  • Ability to FTP to your website should you make a mistake and need to roll-back your changes

WP Snippets


/** Remove page titles site wide (posts & pages) */
remove_action('genesis_post_title', 'genesis_do_post_title');


/** Remove page title for a specific page */
/** Change '28' to your page id */
add_action( 'get_header', 'child_remove_page_titles' );
function child_remove_page_titles() {
    if ( is_page( 28 ) ) {
        remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }
}


/** Remove page title for multiple pages */
/** Change '3645' and '4953' to match your needs */
add_action('get_header', 'child_remove_page_titles');
function child_remove_page_titles() {
    $pages = array( 3645,4953 );
    if ( is_page($pages) ) {
        remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }
}


/** Remove page titles from all single posts & pages */
add_action( 'get_header', 'child_remove_titles' );
function child_remove_titles() {
    if ( is_singular() ){
        remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }
}

/** Remove page titles from specific posts */
add_action('get_header', 'child_remove_post_titles');
function child_remove_post_titles() {
    $pages = array( 4953,4648 );
    if ( is_single( $pages ) ) {
        remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }
}

Instructions

Copy the specific snippet of code above that fits your needs and paste it into your child theme’s functions.php file anywhere below:

require_once( get_template_directory() . '/lib/init.php' );
Written by Rick R. Duncan

Rick is a Richmond WordPress Developer and cyclist that enjoys pedaling WordPress, SEO and Internet Marketing Tips on Twitter, Google+ and here on WPSyntax.com.

Comments

  1. awesome thank you!!

  2. Thank you so much for this post. You can’t imagine how much time I spent looking for this simple trick in the forums. It’s probably there but I didn’t find it.

    I have to say this site has is a fantastic resource. Thank you!
    – bookmarked.

    • Hey Bill,

      Thanks for the kind words. I’m happy to hear that I was able to provide a coding solution for the Genesis Framework that you could use on your website.

      -rd

  3. Kirsten Johnson says:

    Thank you for posting this!!! I used the first snippet and my site is looking better. What I really want though is to remove all page titles but keep the post titles. Is there a snippet that will do that?

    Thanks again for your help!!

    Kirsten

Leave a Comment

Please, only use your real name, not your business name or keywords. We moderate all comments before they appear on our website and will delete and mark as spam anyone not using their real name.

*