• 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

Executive Child Theme – Remove Page Title

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 › Executive Child Theme – Remove Page Title

This topic is: not resolved
  • This topic has 7 replies, 4 voices, and was last updated 13 years, 6 months ago by facupuig.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • November 25, 2012 at 8:18 pm #1665
    facupuig
    Member

    Hi there, I tried to remove using the following code:

    /** 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' );
    }

    place that code in the functions.php, but it tells me:

    Parse error: syntax error, unexpected T_STRING in /home/user/public_html/wp-content/themes/executive/functions.php on line 190

    How can I fix it? Thank you

     

    November 25, 2012 at 8:26 pm #1666
    SoZo
    Member

    There are no erros in what you posted. Where did you place it? Did you try at the very end?


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

    November 26, 2012 at 10:04 am #1720
    facupuig
    Member

    Yup at the very end.

    November 27, 2012 at 3:06 pm #1928
    SoZo
    Member

    Which theme are you using? Is there "?>" at the end of the functions file? If so you need to keep everything before that.


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

    November 30, 2012 at 11:38 pm #2731
    cotaylo
    Member

    Hi. I am having a similar problem. I tried to add the suggested code to remove the author box on single posts and I got this error:

    Parse error: syntax error, unexpected $end in /home/vietnam/public_html/wp-config.php on line 1

    So I tried to follow Nick's tips and tricks tutorial for wp-config debugging and I also deleted my functions.php using filezilla and re-uploaded it. I also checked for the ?> and it's not there. After all this, I still have the dreaded white screen.

    Can you help me figure out what the heck I am doing wrong?

    http://216.172.181.96/~vietnam

    Thank you!

    December 1, 2012 at 9:57 pm #2825
    facupuig
    Member

    @SoZo I am using the Exceutive Child Theme, you can take a look at http://www.souldrivers.net and there is no “?>” at the end of the file, should I add that?

    Thank you.

    December 1, 2012 at 10:15 pm #2827
    Ozzy
    Member

    if you tried using add_action( ‘genesis_before’, ‘child_remove_page_titles’ ); instead of add_action( ‘get_header’, ‘child_remove_page_titles’ );?


    Ozzy Rodriguez | Twitter | Google+

    December 3, 2012 at 3:59 pm #3143
    facupuig
    Member

    I got it! Coda was pasting

    add_action( 'genesis_before', 'child_remove_page_titles' );
    function child_remove_page_titles() {
    if ( is_page() &&amp ! is_page_template( 'landing.php' ) )
    remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }

    Instead of && was &&amp

    I fixed that and it is working, now... what is the difference between ‘genesis_before’ and ‘get_header’ for this matter?

    Thank you!!!

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Executive Child Theme – Remove Page Title’ is closed to new 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