Forums

Join
bbPress Support ForumsTroubleshooting[resolved] Get rid of "New Topic in this Forum" when listing Subforums

Info

[resolved] Get rid of "New Topic in this Forum" when listing Subforums

  1. Change template-functions.php as described below:

    function post_form( $h2 = '' ) {
            global $page, $topic, $forum;
            $add = topic_pages_add();
            if ( empty($h2) && false !== $h2 ) {
                    if ( is_topic() )
                            $h2 =  __('Reply');
                    elseif ( is_forum() && !bb_forums( $forum_id )) // <== Change here
                            $h2 = __('New Topic in this Forum');
                    elseif ( is_bb_tag() || is_front() )
                            $h2 = __('Add New Topic');
            }
    ...

    It's a pity that I had to change a core file. Maybe somebody else could contribute a better solution?

  2. You must log in to post.