Generate Theme: Remove Post Info Section

Community Forums Forums Design Tips and Tricks Generate Theme: Remove Post Info Section

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  skibob1027 1 year, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #53920

    skibob1027
    Participant
    Post count: 6

    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
    #53945

    Stewart
    Participant
    Post count: 156

    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:

    [php]
    /** Reposition the post info function */
    remove_action( ‘genesis_before_post_content’, ‘genesis_post_info’ );
    add_action( ‘genesis_before_post_title’, ‘genesis_post_info’ );
    [/php]

    And remove the the
    [php]
    add_action( ‘genesis_before_post_title’, ‘genesis_post_info’ );
    [/php]

    Hope this helps
    Stewart


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

    #53953

    skibob1027
    Participant
    Post count: 6

    Perfect – thanks, Stewart!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Generate Theme: Remove Post Info Section’ is closed to new replies.