Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can i make sub-forums disappear from under parent forums?


  • jaydd
    Participant

    @jaydd

    bbpress sub-forum
    I make a forum and then i make another forum parented to the first forum, on the webpage the sub forum is shown under the forum with smaller font(shown on the image), but i don’t want that because i will have tons of subforums under that parent, tho it should only be shown when i click on the parent forum. Any idea?

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

  • Robin W
    Moderator

    @robin-w

    so you don’t want to show sub forums, just the parents and then only show the sub forums when the parent is selected?

    Is that right?


    jaydd
    Participant

    @jaydd

    Yes, when i click the parent then it switches page’ and instead of the parent there will be the subforum


    Robin W
    Moderator

    @robin-w

    ok, when I get a moment I’ll take a look


    jaydd
    Participant

    @jaydd

    thank you:)


    Robin W
    Moderator

    @robin-w

    create a directory on your theme called ‘bbpress’
    ie wp-content/%your-theme-name%/bbpress
    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original

    Then change line 50 of this file from

    <?php bbp_list_forums(); ?>
    

    to

    <?php //bbp_list_forums(); ?>
    
    

    This will, stop it listing sub forums.

    Come back if that’s not what you wanted

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar