• 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, 4 months ago by Brad Dalton.
Viewing 10 posts - 21 through 30 (of 30 total)
← 1 2
  • Author
    Posts
  • February 14, 2013 at 3:55 am #20269
    Brad Dalton
    Participant

    Note: A Post formats UI maybe included in the next version of WordPress 3.6 and added to the editor.


    Tutorials for StudioPress Themes.

    February 14, 2013 at 4:24 am #20272
    Brad Dalton
    Participant

    Please let me know if this is what you wanted.

    add_action('get_header', 'child_remove_page_titles');
    function child_remove_page_titles() {
    if ( !is_page()  || is_single() ) {
    remove_action('genesis_post_title', 'genesis_do_post_title');
    }
    }
    

    This code removes titles from all single posts but not single pages or archive pages like your blog page.


    Tutorials for StudioPress Themes.

    February 19, 2013 at 5:29 pm #21502
    KBordonaro
    Member

    Thanks, Brad!

    I don't think I was clear...

    I'm trying to remove the titles from the single pages, not single posts.

    I still can't get it to work. 🙁

    -Kimberly

    February 20, 2013 at 12:04 am #21569
    Brad Dalton
    Participant

    Use the conditional tag for single pages and it will work as long as you remove the post formats code.


    Tutorials for StudioPress Themes.

    February 20, 2013 at 3:33 pm #21811
    KBordonaro
    Member

    I'm such a coding rookie...

    So I copy and paste the code you put (above my last reply), but I change the conditional tag to look like this:

    add_action('get_header', 'child_remove_page_titles');
    function child_remove_page_titles() {
    if ( !is_page()  || is_single() ) {
    remove_action('genesis_page_title', 'genesis_do_page_title');
    }
    }

    February 22, 2013 at 2:02 pm #22277
    Brad Dalton
    Participant

    Not sure of the conditional statements to use. The guys on the WordPress Codex aren't either. Been a hard a few weeks mentally with all the coding. Hopefully i can work it out for you soon.

    The function works so its just a matter of working out which tags to use in the function.


    Tutorials for StudioPress Themes.

    February 22, 2013 at 2:11 pm #22279
    Brad Dalton
    Participant

    I think i have worked it out using CSS.

    .page-template-default .entry-title {
           display:none;
    }
    

    Tutorials for StudioPress Themes.

    May 16, 2013 at 1:33 pm #41247
    SociallyExceptional
    Participant

    The Toggle pluggin works great if you check on each page that you don't want the title to show. Then the blog titles will still show. If you click the box inside the Genesis theme options to remove every header by default then it takes out the blog titles too

    May 20, 2013 at 11:32 pm #41968
    karino
    Member

    Hi Brad

    I typed in your suggestion -into the functions.php at the end as suggested.

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

    It works a treat! thanks - this was really bugging me.

    May 21, 2013 at 12:47 am #41980
    Brad Dalton
    Participant

    No worries Karino.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 10 posts - 21 through 30 (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

© 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