Notifications
Clear all

wpForo 1.x.x [Closed] Hiding Subforums

6 Posts
4 Users
0 Reactions
1,481 Views
Posts: 2
Topic starter
(@wordpressforever)
New Member
Joined: 5 years ago

hi, i want to hide second and third subforms on homepage. As you can see on image, i use threaded. How can i fix that because so much subforms please help me 

5 Replies
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @wordpressforever,

Please leave your forum URL. We'll try to provide a CSS solution for you. 

3 Replies
(@wordpressforever)
Joined: 5 years ago

New Member
Posts: 2

@sofy

http://www.hobidey.com/forum

I think this feature improves wpforo 

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@wordpressforever

Please try to use the following CSS code:

.wpf-forum-item:nth-child(6) ~ .wpf-forum-item {
  display: none !important;
}

The code should be added in the "Custom CSS Code" textarea, located in the Dashboard > Forum > Settings > Styles admin page. 

The number 6 can be changed. 

(@thecrasian)
Joined: 4 years ago

New Member
Posts: 1

@sofy While this option looks like a solution, it's actually not. I'm having the same issue. I want to display categories with subforums and each of those subforums have their own subforms. As it stands, all subforums are currently displayed under a category, which looks like a mess with no organization. The correct structure should be a category that displays subforums. Once a subforum is selected, it should display the subforums nested within it; exactly mirroring the structure in the admin panel. This is currently not the case.

For example, I have a category that should display 3 subforums. Each of those subforums should display 0, 16, and 12 nested subforums. It currently shows a category with all 31 subforums (3 subforums and 28 nested subforums).

The reason that your posted solution is not an option is because in the example, if you use the code as is, that means it will only display the 6 latest subforums that were created. This also applies to subforums within a subform of a category, also displaying 6 latest subforms, and not all.

 

So this is how it currently looks like on the admin panel (which is fine the way it is):

 

Parent category (id=1)

    Subforum (id=2)

    Subforum (id=3)

          Subforum (id=4)

          Subforum (id=5)

    Subforum (id=6)

          Subforum (id=7)

 

How it looks on the forum page:

 

Parent category (id=1)

Subforum (id=6)     Subforum (id=3)

Subforum (id=2)     Subforum (id=7)

Subforum (id=5)     Subforum (id=4)

 

How I need it to look:

 

Parent category (id=1)

Subforum (id=2)     Subforum (id=3)

Subforum (id=6)

 

Selecting on Subforum (id=3) shows:

 

Subforum (id=3)

Subforum (id=4)     Subforum (id=5)

 

Is there any kind of solution to this? It seems like on the discussion board, there was supposed to be an update that resolved this, but that was 19 months ago...

Link: https://wpforo.com/community/general-discussions/display-only-root-forums-or-categories/#post-25946

Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

@thecrasian,

This has been added to our to-do list. As you may know we're getting dozens of request per day, currently we have more than two hundred of requests and suggestions. So please be patient, we're working on them based on the number of requests. There are some priority for each one. We'll do our best to add an option for hiding sub-forums as soon as possible. I'm closing this topic and I'll update once the option is added.