• 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 Post Info, Post Meta from Latest Posts template

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 › Remove Post Info, Post Meta from Latest Posts template

This topic is: not resolved

Tagged: entry-meta, page_blog.php

  • This topic has 6 replies, 3 voices, and was last updated 7 years, 11 months ago by HindiMePadhe.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • February 3, 2018 at 3:02 pm #216053
    greatbigterry
    Member

    Hi

    The following code has removed post info and meta from Archive page, but I can't work out how to also remove it on the posts page - as in the page that reads "You are currently editing the page that shows your latest posts."

    How would I also remove it from that page?

    // Remove Post Info, Post Meta from Archive Pages
    function themeprefix_remove_post_meta() {
    	if (is_archive()) {
    		remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    		remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    		}
    }
    add_action ( 'genesis_entry_header', 'themeprefix_remove_post_meta' );

    Many thanks

    February 4, 2018 at 2:06 am #216054
    Brad Dalton
    Participant

    Add the code directly to a custom page_blog.php file in your child themes root directory.

    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    

    Tutorials for StudioPress Themes.

    February 4, 2018 at 5:15 am #216058
    greatbigterry
    Member

    Thanks Brad - that didn't work.

    Here's my file with the code you suggested.

    <?php
    //* Template Name: Blog
    //* Show page content above posts
    add_action( 'genesis_loop', 'genesis_standard_loop', 5 );
    
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    
    genesis();
    February 4, 2018 at 10:03 am #216066
    Brad Dalton
    Participant

    Only removes the entry meta from the blog page template. If you want to target the front page, use your code and modify the conditional checks like this :

    if ( is_archive() || is_front_page() ) {

    This assumes you are referring to your front page s your posts page.

    Generally, the blog page which uses the blog page template is the posts page.


    Tutorials for StudioPress Themes.

    February 4, 2018 at 11:20 am #216068
    greatbigterry
    Member

    I'm not trying to target the homepage, just the chosen page for blog posts

    February 4, 2018 at 12:04 pm #216074
    Brad Dalton
    Participant

    Not sure what your reading settings are however i suggest you select the blog page template on any single page and leave the readings settings as default so your homepage displays your latest posts.

    Then you can use either of these solutions.


    Tutorials for StudioPress Themes.

    February 4, 2018 at 12:18 pm #216078
    HindiMePadhe
    Member

    Braddalton sir. If I am buy Genesis Framework from gtpl, child theme is included or not. Please reply today 96% discount for wo Genesis Framework.


    https://HindiMePadhe.com/

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ 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