• 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 Another Page Name

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 Another Page Name

This topic is: not resolved

Tagged: Breakthrough Pro

  • This topic has 1 reply, 2 voices, and was last updated 7 years ago by Victor Font.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 21, 2019 at 4:51 pm #403903
    yaelkmiller
    Member

    WordPress 4.9.9
    Genesis 2.7.1
    Breakthrough Pro Pro 1.0.0

    Previously I asked how to remove a page name from the front page.

    Victor Font shared this bit of code which worked:

    add_action( 'get_header', 'child_remove_page_titles' );
    function child_remove_page_titles() {
        $pages = array( '8391' );
        if ( is_page( $pages ) ) {
            remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
        }
    }

    This time I want to also remove the title "Blog" from the Blog page. So I guessed and added another page id. Nothing happened. What did I do incorrectly?

    add_action( 'get_header', 'child_remove_page_titles' );
    function child_remove_page_titles() {
        $pages = array( '8391','8393' );
        if ( is_page( $pages ) ) {
            remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
        }
    }
    http://www.phylliszimblermiller.com/blog/
    January 21, 2019 at 5:51 pm #404660
    Victor Font
    Moderator

    Your Blog page has a different kind of title altogether. It doesn't look like you're using the Genesis blog template either. The source looks like the WordPress blog page, which means you're working outside of the Genesis Framework. So, Genesis commands won't work.

    To remove the title from the WordPress posts page add this to functions.php:

    add_filter( 'the_title', 'custom_posts_page_title', 10, 2 );
    /**
     * Sets custom title for the Posts page.
     *
     * @param  string $title Current title.
     * @param  int $id The post ID.
     *
     * @return string Modified title.
     */
    function custom_posts_page_title( $title, $id ) {
        // get the id of Posts page.
        $posts_page = get_option( 'page_for_posts' );
    
        // if we are not on an inner Posts page, abort.
        if ( ! is_home() || is_front_page() ) {
            return $title;
        }
    
        // if the current entry's ID matches with that of the Posts page..
        if ( $id == $posts_page ) {
            // set your new title here.
            $title = '';
        }
    
        return $title;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

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

© 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