Prestashop 1.7管理员主题CSS覆盖 [英] Prestashop 1.7 admin theme css overrides

查看:170
本文介绍了Prestashop 1.7管理员主题CSS覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试修改PS 1.7的管理主题-仅隐藏一些选项和菜单项。

I am trying to modify the PS 1.7 admin theme - simply to hide a few options and menu items.

我修改了./adminFolder/themes/default/css /override.css

I modified ./adminFolder/themes/default/css/override.css

它在任何地方都可以使用,除了在Catalog / Products和Modules之外-好像没有替代项。

And it works everywhere, except at Catalog/Products and Modules - as if there were no overrides.

如何使css替代在管理区域中全局工作?

How can I get the css overrides to work globally in the admin area?

推荐答案

如果要隐藏菜单/ sub-menus,您可以在表 [PREFIX] _tab 中设置数据库的可见性(默认为 ps_tab )。

If you want to hide menu/sub-menus, you can set the visibility from within the database in the table [PREFIX]_tab (default is ps_tab).

顶部菜单的 id_parent 的值为0,子菜单的值大于0。

The top menu has 0 for id_parent and submenus has a value superior to 0.

例如,我有这个车辆文件自定义模块:

By example, I have this vehicle file custom module:

如果我将具有 class_name V2vVehicleFile 的行设置为 active = 0 (false),然后整个菜单(包括其子菜单)消失。

If I set the row with the class_name "V2vVehicleFile" to active = 0 (false), then the whole menu (including its submenus) disappear.

现在,如果我将具有 class_name AdminVehicleMake 的行设置为 active = 0 (false),则只有名为 车辆制造的子菜单消失。

Now, if I set the row with the class_name "AdminVehicleMake" to active = 0 (false), then only the submenus named "Vehicle make" disappear.

这篇关于Prestashop 1.7管理员主题CSS覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆