• 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

Remove Page Titles in Certain Post

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 › Remove Page Titles in Certain Post

This topic is: not resolved
  • This topic has 4 replies, 4 voices, and was last updated 9 years, 10 months ago by toantq.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 21, 2015 at 4:37 pm #163104
    crissy76
    Member

    Hello! I hope everyone is having a good week. I'm trying to remove the page titles on certain pages.

    I used the following code.

    // Remove Page Title
    add_action('get_header', 'afn_remove_page_titles');
    function afn_remove_page_titles() {
      $pages=array('51','53');
      if (is_page($pages)) {
        remove_action('genesis_post_title', 'genesis_do_post_title');
      }
    }

    It didn't work. I have the correct page id's. Are there any mistakes within the code that I'm not picking up on?

    Thanks 🙂

    August 21, 2015 at 4:52 pm #163106
    Brad Dalton
    Participant

    Try this http://wpsites.net/web-design/remove-titles-specific-conditions/

    And use this example for the conditional tag added after the function.

    is_page( array( 1,2,3,4,5 ) ) 
    

    Tutorials for StudioPress Themes.

    August 21, 2015 at 4:58 pm #163108
    crissy76
    Member

    Thanks, Brad for coming to my rescue. 🙂 The following code works like a charm.

    add_action('get_header', 'remove_specific_page_titles');
    function remove_specific_page_titles() {
        $pages = array( 51,53 );
        if ( is_page($pages) ) {
            remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
        }
    }

    Sweet. Now I can move onto my next task.

    August 23, 2015 at 9:00 pm #163265
    Clive
    Member

    Thanks Brad and Crissy76.
    That fixed the issue on my home page.

    Clive

    August 23, 2015 at 9:57 pm #163269
    toantq
    Member

    Thanks you it work for me too


    bÆ¡m pentax – bÆ¡m ebara – bÆ¡m chìm nước thải – bÆ¡m chữa cháy

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • 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

© 2025 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