By Joey on Tuesday, 11 January 2022
Posted in Technical Issues
Likes 0
Views 516
Votes 0
May I have assistance to hide subcategories (but NOT the subcategory count) on "Container" categories and only display them after a user clicks on the container category?

The webpage is NOT user-friendly at all for mobile users on websites with many subcategories.

I have seen the following similar thread, but it is a few years old and pre-dates EasyDiscuss 5:

- https://stackideas.com/forums/scramble-sub-categories

Any assistance would surely be appreciated.
Unfortunately, it required some customization in the core file in order to achieve this "only display them after a user clicks on the container category".

By the way, you can apply the following CSS from your site backend > Easydiscuss > setting > custom CSS so it will hide the subcategories on the categories listing page.


body #ed.view-categories.layout-default .ed-subcategories-wrapper .l-cluster--comma-list {
display: none;
}
·
Tuesday, 11 January 2022 10:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, that code worked well for me.
That is exactly what I wanted to accomplish.

Can you make this thread public so others have access to the code?
·
Tuesday, 11 January 2022 11:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you make this thread public so others have access to the code?

Sure.
·
Tuesday, 11 January 2022 11:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually, that code only works if it is added to my default theme custom CSS.

It did not work when added to: "Site Backend > Easydiscuss > Setting > Custom CSS
·
Sunday, 23 January 2022 03:37
·
0 Likes
·
0 Votes
·
0 Comments
·
I think you have to resave the setting again from Site Backend > Easydiscuss > Setting > Custom CSS since you have changed your template to other recently.

By the way, actually you apply this custom CSS from your current template also no problem.
·
Monday, 24 January 2022 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, you are correct!

The code works when added to the template's custom CSS code section.
The code works when added to EasyDiscuss' custom CSS code section.
·
Monday, 24 January 2022 11:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Monday, 24 January 2022 11:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post