• 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

How to remove titles from one post format in the loop (front page)

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 › How to remove titles from one post format in the loop (front page)

This topic is: resolved

Tagged: post format, remove title

  • This topic has 3 replies, 3 voices, and was last updated 7 years, 9 months ago by fncll.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 4, 2017 at 1:39 pm #210007
    fncll
    Member

    I'm trying to remove the title from posts on the front page of a specific post format. The code I came up with to do this is:

    add_action( 'loop_start', 'remove_titles_asides_posts' );
    
    function remove_titles_asides_posts() {
        if (has_post_format('aside')) {
            remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
        }
    }

    However this is removing the title (or not) from all posts based on the most recent entry...if the most recent entry uses the aside post format, it removes all title; if not, it removes none. How can I selectively remove the title?

    August 4, 2017 at 1:47 pm #210008
    Brad Dalton
    Participant

    You could add another conditional like is_front_page

    if (has_post_format('aside') && is_front_page() ) {
    

    Tutorials for StudioPress Themes.

    August 4, 2017 at 1:53 pm #210009
    KenSP
    Member

    What about this: https://www.hostinger.com/tutorials/how-to-hide-page-title-wordpress

    Regards - Ken

    August 4, 2017 at 3:54 pm #210010
    fncll
    Member

    Adding is_front_page doesn't help because I am trying to selectively hide the title on the front page (so that condition is always true). The problem I had with the original code is that it apparently runs once on the front page and whatever the most recent post_format is determines whether the remove_action is run on ALL the posts.

    I ended up selectively hiding posts with CSS instead:

    .post_format-post-format-aside h2.entry-title a {display: none;}

    But I still need to set selectors so it does the same on individual pages, etc. Thanks for the pointers!

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