从显示面板上移除子类别

Hi all,

I hope you are well. Could you let me know how to only display catégories and not the sub-catégorie. Here is below what i have which look messy in my opinion.

Many thanks for your help,

33

I don’t think there’s a setting for that but I could be wrong.

In case there isn’t, you can use this to hide subcategories:

.menu-panel li.subcategory {
    display: none;
}

Capture

Yep great, it does the job perfectly.

Thanks a lot

如果隐藏子分类没有其他方法,我想将此功能添加到我的网站。有两个问题…… 1) 这段代码具体添加在哪里?2) 点击主分类时,子分类是否仍然会显示?

提前感谢!

我认为应该在那里:
https://your.domain/admin/customize/themes/1/common/scss/edit

(针对我的设置,1 代表深色主题,2 代表浅色主题,具体取决于您的主题)

是的,如果您指的是类别页面,那正是 .menu-panel 的作用。

@Benjamin_D 非常感谢!!