Tagged: mega menu
I have created a mega menu.
I can add background images for each column within each sub menu ie
#menu-item-163265 { background-image: url("/wp-content/uploads/2017/10/stones.jpg") !important;
background-repeat: no-repeat;
background-position: right bottom;
}
How can I have a different background for each sub menu
When I add css (see code) it applies to all sub menus and I can not see any reference css to target each sub menu
.avia_mega_div > .sub-menu {
background: url("/wp-content/uploads/2017/10/stones.jpg") !important;
background-size: 80% 80% !important;
background-repeat: no-repeat !important;
background-position: right bottom !important;
}
I found the solution …dooo
The sub menu id is there, ie. menu-item-123 so I added it in front of the code I already had working ..
#menu-item-170 > .avia_mega_div > .sub-menu {
background: url("/wp-content/uploads/2017/10/stones.jpg") !important;
background-size: 80% 80% !important;
background-repeat: no-repeat !important;
background-position: right bottom !important;
}