Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hiding Sub-parents

  • @glisthed

    Participant

    Hello

    I want to hide sub-parents and display the main parent only. As seen in the picture below, i want to remove those categories that i circled with the red color.

    example

    Also, i want to remove that blue bar that shows how many posts are in the forum and says the forum is empty. In short, i circled everything that i want to remove in red.

    Thank you in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @robin-w

    Moderator

    Ok, you need to amend some templates and put these into your child theme

    https://codex.bbpress.org/functions-files-and-child-themes-explained/

    Sub-forum removal

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    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/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this to remove the sub forums

    line 44 says <?php bbp_list_forums(); ?>

    delete this line and the sub forums will go !

    forum posts

    do the same as above, but for content-single-forum

    and then take out line 26 that says

    <?php bbp_single_forum_description(); ?>
    
    

    @glisthed

    Participant

    Hey Robin.

    Your tips were specific and very useful. Thank you very much! It worked like a charm!

    @robin-w

    Moderator

    Great – glad you’re fixed !

    @gdelle

    Participant

    Im looking for the same thing but Im having issues getting in FTP, Ug I hate this host! while I understand some FTP and how it works Ive never made a new directory. ha ha. I cannot get in with theirs or filezilla.

    Is there any other fix outside ftp? Someone here I can pay to do this?

    Ive tried various plugins, etc, stuff I found here. Ive been searching this thing for a couple weeks now. ha ha

    @robin-w

    Moderator

    in FileZilla you right click whilst pointing at the directory you want to create a sub in.

    I cold cut a plugin for you, but it would be at least a week before I could do this – contact me via my website http://www.rewweb.co.uk

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