Can't remove author box or post info

Community Forums Forums General Discussion Can't remove author box or post info

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  nutsandbolts 8 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #85221

    Neosnc
    Member
    Post count: 2

    I’m trying to use the genesis hooks to remove the author box on any page. Adding these lines to the genesis sample theme functions.php still shows all the author or post info. Theme is the raw genesis sample theme.

    //* Remove the post info function
    remove_action( ‘genesis_before_post_content’, ‘genesis_post_info’ );
    //* Remove the author box on single posts XHTML Themes
    remove_action( ‘genesis_after_post’, ‘genesis_do_author_box_single’ );
    //* Remove the author box on single posts HTML5 Themes
    remove_action( ‘genesis_after_entry’, ‘genesis_do_author_box_single’, 8 );
    remove_action( ‘genesis_after_post’, ‘genesis_do_author_box_single’, 8 );

    #85239

    nutsandbolts
    Moderator
    Post count: 3131

    What child theme are you using?


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #85259

    Neosnc
    Member
    Post count: 2

    Hi Nutsandbolts, I’m using the Genesis sample theme as a test. I actually came across your blog and tried to follow that first (for bbpress author box). My main theme is Epik by Appfinite which I’ve swapped out with Genesis sample while I troubleshoot.

    #85260

    Neosnc
    Member
    Post count: 2

    Breakthrough! Figured it out by searching the Genesis 2.0.2 source.

    //* Remove the post info function
    remove_action( ‘genesis_entry_header’, ‘genesis_post_info’, 12 );

    That’s what I was looking for. Now to customize when it occurs.

    #85264

    nutsandbolts
    Moderator
    Post count: 3131

    Fantastic! I was just headed back here to give you the 2.0+ hook to use, but I see you found it. :)


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

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

You must be logged in to reply to this topic.