Genesis' ); } } function location_check() { // We don't need to check for all of these (many are redundant) // but will to make sure all the bases are covered. if ( bbp_is_custom_post_type() || bbp_is_forum() || bbp_is_forum_archive() || bbp_is_single_forum() || bbp_is_topic() || bbp_is_single_topic() || bbp_is_topic_archive() || bbp_is_topic_merge() || bbp_is_topic_split() || bbp_is_topic_tag() || bbp_is_topic_tag_edit() || bbp_is_reply() || bbp_is_reply_edit() || bbp_is_single_reply() || bbp_is_favorites() || bbp_is_subscriptions() || bbp_is_topics_created() || bbp_is_single_user() || bbp_is_single_user_edit() || bbp_is_single_view() ){ // Remove breadcrumbs. // This is option, however I found the breadcrumbs look screwy on forum pages remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); // Remove post info & meta // If you have moved the info/meta from their default location you will need to updated this accordingly remove_action( 'genesis_before_post_content', 'genesis_post_info' ); remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); // Remove Genesis post image and content. // // This is primarily what screws everything up! // bbPress filters the_content(); so if Genesis is modifying it first, things explode! remove_action( 'genesis_post_content', 'genesis_do_post_image' ); remove_action( 'genesis_post_content', 'genesis_do_post_content' ); // Remove authorbox // In some very odd cases, the authorbox could show. Nuke it. remove_action('genesis_after_post', 'genesis_do_author_box_single'); // Add back the normal the_content, which bbPress expects. add_action( 'genesis_post_content', 'the_content' ); // This is optional. Uncomment if you want to force a specific layout on all forum pages. // I have found that usually this is needed to prevent unexpected layouts from being displayed add_filter('genesis_pre_get_option_site_layout', 'ja_bbpress_layout'); function ja_bbpress_layout( $opt ) { $opt = 'full-width-content'; return $opt; } } } } new Genesis_bbPress_Extend;