Hi from France,
I am in the process of creating a forum which will have categories, forums and a certain number of sub-forums.
I would like to know if it is possible to edit the "Forum tree" so that only the categories and forums appear in the "wpForo Forums" widget and not the sub-forums.
Thank you
Hi,
You can hide the sub-forums using the CSS code below:
#wpforo #wpf-widget-forums .wpforo-widget-content dl dd dl {display:none;}
The CSS codes should be added in the "Custom CSS code" textarea, located in the Dashboard > Forums > Settings > Styles Tab.
Please don't forget to delete all caches and press Ctrl+F5 (twice) on the frontend before checking to reload the updated CSS file.
Hi @nico
The "- -" are always present in the drop-down menu.
the code above doesn't work for drop down
you can hide the subforums via the forum IDs
Example forum ID 1 , 3 and 5
#wpforo #wpforo-wrap #wpf-widget-forums select option[value="1"],
#wpforo #wpforo-wrap #wpf-widget-forums select option[value="3"],
#wpforo #wpforo-wrap #wpf-widget-forums select option[value="5"] { display: none !important;}
Thank you so much Tutrix, it works perfectly 👍
