If you have a bbPress forum on a site running the Genesis framework, the bbPress Genesis Extend plugin is a great tool. It helps bbPress integrate with your Genesis child theme so that (hopefully) you don’t need to add a lot of CSS changes to your stylesheet.
One thing it may not do is remove the Genesis author box from your forum pages. I nearly lost my mind trying to hide the author box on a client’s site; nothing I did was working and the client was becoming frustrated. Today, with the help of the bbPress Genesis Extend plugin’s author, Jared Atchison, and some other awesome people in the Genesis community, I finally found a solution that works.
If You’re Using an XHTML Genesis Child Theme
For older XHTML child themes, add the following to functions.php:
Keep in mind, if your child theme positions the author box somewhere other than genesis_after_post
, you will need to change the hook in the above code.
If You’re Using an HTML5 Genesis Child Theme
For newer HTML5 child themes, add the following to functions.php:
Again, you may need to change the hook if your child theme has moved the author box.
That’s all, folks! Once you insert the code above into functions.php and save, you should still see the author box on single posts, but not on your bbPress forums.
Comments are now closed for this article.
John Scheine says
The Community based support is is one of the things we love about genesis. (That and most solutions like the one you were looking for are relatively simple to implement.)
Andrea Whitmer says
I agree 100%. It’s awesome to be able to get in touch with devs who are internet famous yet still take the time to help out those who aren’t as knowledgable as they are. And I love being able to keep code snippets like these handy for quick changes to the themes I create or modify. Genesis is awesome!
Grégoire Noyelle says
Hello Andrea
Thanks a lot. I suppose I can use this snippets to activate author box on page, with `add_action` of course
Andrea Whitmer says
Possibly, depending on where you need it to show up. Let me know how it goes if you try it!
Grégoire Noyelle says
here is the way to do it.
Juste change the hook if you use HTM5
http://wpsmith.net/2011/genesis/add-the-genesis-author-box-to-pages/
Kentaro Fischer says
Thanks for posting this helpful article and responding to my forum post. I was able to update my code to this for Genesis 2.0.2.
//* Remove the post info function
add_action( ‘genesis_entry_header’, ‘bbpress_remove_post_info’ );
function bbpress_remove_post_info() {
if (is_bbpress()) {
remove_action( ‘genesis_entry_header’, ‘genesis_post_info’, 12 );
}
}
Andrea Whitmer says
Thanks for that! I’ve never had bbPress Genesis Connect fail to remove the post info, but will keep that in mind in case it ever happens on any of my sites or my clients’ sites.