09.04.2019, 11:02
(09.04.2019, 07:46)admin Wrote: You can hide an element if there are no elements with a certain class:
Code:$(function() {
if (!$('.custom-menu-item').length) {
$('.custom-menu').addClass('hide');
}
});
Add custom-menu-item class to any of your menu links and add custom-menu class to menu image.
Thanks!!
It works perfectly