• 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

Hide genesis_post_info

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 › General Discussion › Hide genesis_post_info

This topic is: resolved
  • This topic has 2 replies, 2 voices, and was last updated 9 years, 10 months ago by SirTzusky.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 15, 2015 at 9:17 am #165582
    SirTzusky
    Member

    I want to hide from all loops the post info. And show only in single posts.
    I add the following to my functions.php

    if ( !is_single() )
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );

    But the post info is removed from everywhere. Any idea why? What am I doing wrong? Thank you.

    September 15, 2015 at 9:31 am #165588
    Christoph
    Member

    Hi,

    you have to wrap it in a function.

    add_action( 'genesis_before_entry', 'remove_post_info_except_single_posts' );
    function remove_post_info_except_single_posts() {
    	if ( ! is_single() ) {
    		remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    	}
    }

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    September 16, 2015 at 1:52 am #165698
    SirTzusky
    Member

    Thank you Chris, Works great!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide genesis_post_info’ 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

© 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