• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Removing Page Titles | Pretty Pictures Theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Removing Page Titles | Pretty Pictures Theme

This topic is: not resolved

Tagged: page titles, pretty pictures

  • This topic has 29 replies, 7 voices, and was last updated 12 years, 9 months ago by Brad Dalton.
Viewing 20 posts - 1 through 20 (of 30 total)
1 2 →
  • Author
    Posts
  • January 22, 2013 at 3:01 pm #13839
    KBordonaro
    Member

    Hi!

    I used the following code but the page titles are still there.

    /** Remove page titles */
    add_action( ‘get_header’, ‘child_remove_page_titles’ );
    function child_remove_page_titles() {
    if ( is_page() && ! is_page_template( ‘page_blog.php’ ) )
    remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );
    }

    Help! 🙂

    Kimberly

    http://www.kimberlybordonaro.com

    January 22, 2013 at 3:31 pm #13852
    Brad Dalton
    Participant

    I've written a tutorial on this as there's different ways to hide page titles in WordPress themes.

    Where did you get the php for this?


    Tutorials for StudioPress Themes.

    January 22, 2013 at 3:38 pm #13853
    KBordonaro
    Member

    Thanks, Brad. Great tutorial!

    I'm wondering if there is a way to remove titles from all my websites pages instead of doing it one by one for specific pages. I remember I did this on a previous child theme I used but I don't recall how.

    BTW, I got the code from searching on this forum. There are quite a few posts, not sure which one I grabbed it from - but it was used in a few of them.

    Cheers,

    Kimberly

    January 22, 2013 at 3:46 pm #13856
    Brad Dalton
    Participant

    Bills plugin: Genesis Title Toggle
    http://wordpress.org/extend/plugins/genesis-title-toggle/

    Haven't tested this plugin but it should do the job based on the description.


    Tutorials for StudioPress Themes.

    January 22, 2013 at 4:43 pm #13877
    SoZo
    Member

    Delete this line

    add_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );

    from

    // Add back, as post has no format
    else {
    add_action( ‘genesis_before_post_content’, ‘genesis_post_info’ );
    add_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );
    add_action( ‘genesis_after_post_content’, ‘genesis_post_meta’ );
    }


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 22, 2013 at 4:59 pm #13892
    KBordonaro
    Member

    @SoZo... I don't see the snippet. Here's what I have:

    /** Remove elements for post formats */
    add_action( 'genesis_before_post', 'pp_remove_elements' );
    function pp_remove_elements() {

    // Remove if post has quote format
    if ( has_post_format( 'quote' ) ) {
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    }

    // Remove if post has gallery format
    elseif ( has_post_format( 'gallery' ) ) {
    add_action( 'genesis_post_title', 'genesis_do_post_title' );
    add_action( 'genesis_after_post_content', 'genesis_post_meta' );
    }

    // Add back, as post has no format
    else {
    add_action( 'genesis_post_title', 'genesis_do_post_title' );
    add_action( 'genesis_after_post_content', 'genesis_post_meta' );
    }

     


    @Brad
    - excellent plugin... except it also removed my header picture on the blog post pages. Strange!

    January 22, 2013 at 5:00 pm #13893
    SoZo
    Member

    The last one 😉

    // Add back, as post has no format
    else {
    add_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );
    add_action( ‘genesis_after_post_content’, ‘genesis_post_meta’ );
    }


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 22, 2013 at 5:07 pm #13898
    KBordonaro
    Member

    Hmmmm....

    That removes my header picture whenever I'm on a blog page.

    My "about", "contact", and "amplify your brand" pages have my header picture.

    The "homepage", "brandspiration" and "praise" pages (all blog formats) don't.

    http://www.kimberlybordonaro.com

     

    January 22, 2013 at 6:01 pm #13915
    SoZo
    Member

    Ok, put that line back and then use this (not sure why but I wrote it out from scratch instead of copy/pasting and it's working for me)

    /** Remove page titles */
    add_action('get_header', 'child_remove_page_titles');
    function child_remove_page_titles() {
    if (is_page() && ! is_page_template( ‘page_blog.php’ ) ) 
    remove_action('genesis_post_title', 'genesis_do_post_title');
    }

    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 22, 2013 at 7:56 pm #13954
    KBordonaro
    Member

    I don't get it...

    I did exactly as you said and put back the original code, but it is still taking out my header image on blog page, including the front page.

    January 22, 2013 at 7:59 pm #13955
    KBordonaro
    Member

    Okay,  I redid it. Now the header image is back to normal...

    But, the added code isn't removing the page titles.

    🙁

    January 22, 2013 at 8:00 pm #13956
    KBordonaro
    Member

    PS, You are so awesome John. I really appreciate your help.

    January 22, 2013 at 8:57 pm #13967
    docmas
    Member

    i added the title toggler plugin to do the same thing on my agency blog:

    http://thepassiondoctor.com

    it works, yet not sure if the added plugin slows down loading or just changes the php once for each page.

    adam

    January 23, 2013 at 6:35 am #14032
    Brad Dalton
    Participant

    '@Brad – excellent plugin… except it also removed my header picture on the blog post pages. Strange!'

    l'll pass that onto Bill Erickson who's the plugin author because it shouldn''t do that.


    Tutorials for StudioPress Themes.

    January 23, 2013 at 10:36 pm #14237
    KBordonaro
    Member

    Thanks, Brad.

    If anyone has suggestions on how to the resolve this issue, please chime in. I'd greatly appreciate it. 🙂

    January 31, 2013 at 9:34 pm #16964
    khawaja1971
    Member

    I would also like this to be resolved.  If I use the Genesis Title Toggle plugin I can remove the title from my home "page".  But if I put the following code at the end of home.php in Balance theme it has no effect.

    remove_action( 'genesis_post_title', 'genesis_do_post_title' );

    From everything I read it really should work.  I`ve also tried the whole functions.php thing as well to no avail.  There is a whole bunch of white space I would really like to remove to make the home page a bit more voter / mobile friendly.

    February 12, 2013 at 9:31 am #19824
    Brad Dalton
    Participant

    Is this resolved now?

    Here's a good tutorial on removing titles using conditional tags

    http://wpsmith.net/2011/genesis/remove-post-title-and-page-title-from-genesis-child-theme-with-or-without-post-formats-support/


    Tutorials for StudioPress Themes.

    February 12, 2013 at 11:10 am #19845
    khawaja1971
    Member

    More ignored rather than resolved.  I've put the code in various different places including functions.php and home.php without effect.

    February 12, 2013 at 6:27 pm #19968
    KBordonaro
    Member

    Hi, Brad.

    I used the code for removing page titles... but now it's removed the blog post titles on the blog page.

    So frustrating!

    Any ideas on what to do?

    Kimberly

     

    http://www.kimberlybordonaro.com

    February 14, 2013 at 3:48 am #20268
    Brad Dalton
    Participant

    Remove this code from your child themes functions file if you are NOT using or planning on using post formats.

    Backup the file first.

    /** Add support for post formats */
    add_theme_support( 'post-formats', array(
        'gallery',
        'quote'
    ) );
    
    /** Remove elements for post formats */
    add_action( 'genesis_before_post', 'pp_remove_elements' );
    function pp_remove_elements() {
    
    	// Remove if post has quote format
    	if ( has_post_format( 'quote' ) ) {
    		remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    		remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    		remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    	}
    
    	// Remove if post has gallery format
    	elseif ( has_post_format( 'gallery' ) ) {
    		add_action( 'genesis_post_title', 'genesis_do_post_title' );
    		add_action( 'genesis_after_post_content', 'genesis_post_meta' );
    	}
    
    	// Add back, as post has no format
    	else {
    		add_action( 'genesis_before_post_content', 'genesis_post_info' );
    		add_action( 'genesis_post_title', 'genesis_do_post_title' );
    		add_action( 'genesis_after_post_content', 'genesis_post_meta' );
    	}
    
    }
    

    Then add this code to the end of your child themes functions.php file.

    This will remove the page titles from all single pages. You can change the conditional tag to remove titles from other pages, posts etc.

    //remove page titles only sitewide
    add_action('get_header', 'child_remove_page_titles');
    function child_remove_page_titles() {
    if ( is_page() ) {
    remove_action('genesis_post_title', 'genesis_do_post_title');
    }
    }
    

    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 30 total)
1 2 →
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble