Skip to:
Content
Pages
Categories
Search
Top
Bottom

Determining Theme Layout for bbPress


  • aussiemike
    Participant

    @aussiemike

    Hello
    I am using the latest version of WP and bbPress with iThemese Builder theme.
    Through the theme functions I am able to show all parts of the forum on a particular theme layout, apart from the forum index page when the breadcrumb ‘forums’ link is clicked. This takes me back to the main template layout which does not have the forum wigdets as required on all forum pages.
    I also have the same issue with the search results.

    I have tried the following code but as I am not overly familiar with bbPress conditionals it does not solve the problem. I believe what I am look for is the correct information to go into this line:
    if ( is_bbpress() && in_category( ‘page’ ) )

    // create view for forums
    function custom_filter_category_layouts( $layout_id ) {
        if ( is_bbpress() && in_category( 'page' ) )
                return '599b46ad5fa63';
    
        return $layout_id;
    }
    add_filter( 'builder_filter_current_layout', 'custom_filter_category_layouts' );

    Any advice appreciated.

    Mike

  • You must be logged in to reply to this topic.