Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
3924 Ansichten

Hello,

I have configured my website in Odoo using drag and drop features and I want to add more changes via html/css editor but I am having trouble finding the specific codes. 

I currently have a sub-menu on the left as shown below:

And I want to change it according to below image:

1. I want the border between the menus in my website.

2. I want to change the dropdown icon to a '+' sign to expand and a '-' sign to collapse the sub-menus.

Any help is appreciated.

Thanks.

Avatar
Verwerfen
Beste Antwort

Hi Fadil,

To achieve your requirement you just write CSS code in code injector in the web editor

in the editor section try this:
For border between menus:   

/* Add border between top-level menu items */
.nav-menu > li {
  border-right: 1px solid #ccc;
}

/* Add border between sub-menu items */
.nav-menu li ul li {
  border-bottom: 1px solid #ccc;
}

For '+' or '-' icon:

/* Replace dropdown icon with Font Awesome icons */
.nav-menu .fa-chevron-down:before {
  content: "\f067"; /* Plus icon */
}

.nav-menu .open .fa-chevron-down:before {
  content: "\f068"; /* Minus icon */
}


Hope it helps


Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Mai 25
10407
1
Feb. 23
3951
0
Okt. 21
3048
3
Okt. 20
5479
7
März 24
9889