Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
27773 Lượt xem

How to change the menu icons

as shown in the url:

https://imgur.com/3HGz2TF

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

For the menu the icon which has to displayed is specified like this,

<menuitem name="My App" id="my_menu" web_icon="module_name,static/description/icon.png"/>


To change the existing menu icons, either you can do it from the Front end or from the code. If you are doing from the code, inherit the menu and update the web_icon with the new icon.

<menuitem id="module_name.menu_root" web_icon="module_name,static/description/icon.png"/>


From the front end, activate the developer mode and navigate to Settings -> Technical -> User Interface -> Menu Items, search the menu and open it. There you can see a field named Web Icon Image where you can add the new icon.

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

May be this will helpful

 
 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 22
4105
3
thg 2 21
26520
1
thg 11 18
13774
3
thg 4 25
9844
2
thg 7 24
1470