• 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

Generate Theme: Remove Post Info Section

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 › Generate Theme: Remove Post Info Section

This topic is: resolved

Tagged: .post-info, generate, genesis_post_info, home

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 7 months ago by skibob1027.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 3, 2013 at 5:39 am #53920
    skibob1027
    Member

    I'm trying to remove the Post Info section above the post(s) on the home page of the Generate theme. A quick search online yields the following code to remove the Post Info and Post Meta sections:

    /** Remove post meta function */
    remove_action('genesis_after_post_content', 'genesis_post_meta');
    
    //* Remove the post info function */
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );

    Adding this to functions.php worked perfectly to remove the Post Meta, but unfortunately the Post Info section is still showing up on the home page. I also added the code to the home.php file, but still had not luck. Any ideas?

    http://www.steibelsauto.com
    August 3, 2013 at 9:33 am #53945
    Stewart
    Member

    Hi,

    Im sure it has to do with the Generate theme repositions the post info, so the hook you are using will not work.

    The good part is you only have to remove 1 line that is already in the functions.php on around line 42.

    Look for:

    /** Reposition the post info function */
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    add_action( 'genesis_before_post_title', 'genesis_post_info' );
    

    And remove the the

    add_action( 'genesis_before_post_title', 'genesis_post_info' );
    

    Hope this helps
    Stewart


    WordPress Developer – Need help upgrading to Genesis 2.0? – My Blog
    Follow me on Twitter

    August 3, 2013 at 10:42 am #53953
    skibob1027
    Member

    Perfect - thanks, Stewart!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Generate Theme: Remove Post Info Section’ 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

© 2023 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